annotate runtime/syntax/dsl.vim @ 1971:11c6bda3b53a v7.2.268

updated for version 7.2-268
author vimboss
date Tue, 03 Nov 2009 10:43:27 +0000
parents 3fc0f57ecb91
children 7bc41231fbc7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: DSSSL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Johannes Zellner <johannes@zellner.org>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: Tue, 27 Apr 2004 14:54:59 CEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Filenames: *.dsl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " $Id$
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if exists("b:current_syntax") | finish | endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 runtime syntax/xml.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 syn cluster xmlRegionHook add=dslRegion,dslComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 syn cluster xmlCommentHook add=dslCond
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " EXAMPLE:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " <![ %output.html; [
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " <!-- some comment -->
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " (define html-manifest #f)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " ]]>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " NOTE: 'contains' the same as xmlRegion, except xmlTag / xmlEndTag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn region dslCond matchgroup=dslCondDelim start="\[\_[^[]\+\[" end="]]" contains=xmlCdata,@xmlRegionCluster,xmlComment,xmlEntity,xmlProcessing,@xmlRegionHook
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " NOTE, that dslRegion and dslComment do both NOT have a 'contained'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " argument, so this will also work in plain dsssl documents.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn region dslRegion matchgroup=Delimiter start=+(+ end=+)+ contains=dslRegion,dslString,dslComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match dslString +"\_[^"]*"+ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match dslComment +;.*$+ contains=dslTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword dslTodo contained TODO FIXME XXX display
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " The default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 hi def link dslTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 hi def link dslString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 hi def link dslComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " compare the following with xmlCdataStart / xmlCdataEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 hi def link dslCondDelim Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 let b:current_syntax = "dsl"