[7.2.442] Copy/paste with OpenOffice doesn't work.
[vim_mainline.git] / runtime / syntax / dsl.vim
blob95c78431409cde01b3ed7384ee7711975eee9827
1 " Vim syntax file
2 " Language:     DSSSL
3 " Maintainer:   Johannes Zellner <johannes@zellner.org>
4 " Last Change:  Tue, 27 Apr 2004 14:54:59 CEST
5 " Filenames:    *.dsl
6 " $Id: dsl.vim,v 1.1 2004/06/13 19:13:31 vimboss Exp $
8 if exists("b:current_syntax") | finish | endif
10 runtime syntax/xml.vim
11 syn cluster xmlRegionHook add=dslRegion,dslComment
12 syn cluster xmlCommentHook add=dslCond
14 " EXAMPLE:
15 "   <![ %output.html; [
16 "     <!-- some comment -->
17 "     (define html-manifest #f)
18 "   ]]>
20 " NOTE: 'contains' the same as xmlRegion, except xmlTag / xmlEndTag
21 syn region  dslCond matchgroup=dslCondDelim start="\[\_[^[]\+\[" end="]]" contains=xmlCdata,@xmlRegionCluster,xmlComment,xmlEntity,xmlProcessing,@xmlRegionHook
23 " NOTE, that dslRegion and dslComment do both NOT have a 'contained'
24 " argument, so this will also work in plain dsssl documents.
26 syn region dslRegion matchgroup=Delimiter start=+(+ end=+)+ contains=dslRegion,dslString,dslComment
27 syn match dslString +"\_[^"]*"+ contained
28 syn match dslComment +;.*$+ contains=dslTodo
29 syn keyword dslTodo contained TODO FIXME XXX display
31 " The default highlighting.
32 hi def link dslTodo             Todo
33 hi def link dslString           String
34 hi def link dslComment          Comment
35 " compare the following with xmlCdataStart / xmlCdataEnd
36 hi def link dslCondDelim        Type
38 let b:current_syntax = "dsl"