annotate runtime/syntax/dsl.vim @ 18580:4ac042c8ed98 v8.1.2284

patch 8.1.2284: compiler warning for unused variable Commit: https://github.com/vim/vim/commit/439b3aca373a1fc661f20154eba340045bbe8454 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 10 01:32:12 2019 +0100 patch 8.1.2284: compiler warning for unused variable Problem: Compiler warning for unused variable. (Tony Mechelynck) Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Sun, 10 Nov 2019 01:45:03 +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"