annotate runtime/syntax/dsl.vim @ 7547:567e027a3ea1 v7.4.1074

commit https://github.com/vim/vim/commit/5fa4d448fb717874b6619bcda62e42190702997c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 10 13:25:55 2016 +0100 patch 7.4.1074 Problem: Warning from VX2015 compiler. Solution: Add a type cast. (Mike Williams)
author Christian Brabandt <cb@256bit.org>
date Sun, 10 Jan 2016 13:30:05 +0100
parents 7bc41231fbc7
children
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
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
6 " $Id: dsl.vim,v 1.1 2004/06/13 19:13:31 vimboss Exp $
7
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"