Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / share / vim / vim74 / syntax / | server ip : 172.67.156.115 your ip : 108.162.241.199 H O M E |
Filename | /usr/share/vim/vim74/syntax/dsl.vim |
Size | 1.28 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:56 |
Last modified | 03-Jan-2014 03:40 |
Last accessed | 07-Jul-2025 03:18 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
" Vim syntax file
" Language: DSSSL
" Maintainer: Johannes Zellner <[email protected]>
" Last Change: Tue, 27 Apr 2004 14:54:59 CEST
" Filenames: *.dsl
" $Id: dsl.vim,v 1.1 2004/06/13 19:13:31 vimboss Exp $
if exists("b:current_syntax") | finish | endif
runtime syntax/xml.vim
syn cluster xmlRegionHook add=dslRegion,dslComment
syn cluster xmlCommentHook add=dslCond
" EXAMPLE:
" <![ %output.html; [
" <!-- some comment -->
" (define html-manifest #f)
" ]]>
"
" NOTE: 'contains' the same as xmlRegion, except xmlTag / xmlEndTag
syn region dslCond matchgroup=dslCondDelim start="\[\_[^[]\+\[" end="]]" contains=xmlCdata,@xmlRegionCluster,xmlComment,xmlEntity,xmlProcessing,@xmlRegionHook
" NOTE, that dslRegion and dslComment do both NOT have a 'contained'
" argument, so this will also work in plain dsssl documents.
syn region dslRegion matchgroup=Delimiter start=+(+ end=+)+ contains=dslRegion,dslString,dslComment
syn match dslString +"\_[^"]*"+ contained
syn match dslComment +;.*$+ contains=dslTodo
syn keyword dslTodo contained TODO FIXME XXX display
" The default highlighting.
hi def link dslTodo Todo
hi def link dslString String
hi def link dslComment Comment
" compare the following with xmlCdataStart / xmlCdataEnd
hi def link dslCondDelim Type
let b:current_syntax = "dsl"
" Language: DSSSL
" Maintainer: Johannes Zellner <[email protected]>
" Last Change: Tue, 27 Apr 2004 14:54:59 CEST
" Filenames: *.dsl
" $Id: dsl.vim,v 1.1 2004/06/13 19:13:31 vimboss Exp $
if exists("b:current_syntax") | finish | endif
runtime syntax/xml.vim
syn cluster xmlRegionHook add=dslRegion,dslComment
syn cluster xmlCommentHook add=dslCond
" EXAMPLE:
" <![ %output.html; [
" <!-- some comment -->
" (define html-manifest #f)
" ]]>
"
" NOTE: 'contains' the same as xmlRegion, except xmlTag / xmlEndTag
syn region dslCond matchgroup=dslCondDelim start="\[\_[^[]\+\[" end="]]" contains=xmlCdata,@xmlRegionCluster,xmlComment,xmlEntity,xmlProcessing,@xmlRegionHook
" NOTE, that dslRegion and dslComment do both NOT have a 'contained'
" argument, so this will also work in plain dsssl documents.
syn region dslRegion matchgroup=Delimiter start=+(+ end=+)+ contains=dslRegion,dslString,dslComment
syn match dslString +"\_[^"]*"+ contained
syn match dslComment +;.*$+ contains=dslTodo
syn keyword dslTodo contained TODO FIXME XXX display
" The default highlighting.
hi def link dslTodo Todo
hi def link dslString String
hi def link dslComment Comment
" compare the following with xmlCdataStart / xmlCdataEnd
hi def link dslCondDelim Type
let b:current_syntax = "dsl"