annotate runtime/syntax/idl.vim @ 1532:87b9f21264a7 v7.1.247

updated for version 7.1-247
author vimboss
date Wed, 13 Feb 2008 09:58:14 +0000
parents dc8197342755
children af1e8a1714c2
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
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
2 " Language: IDL (Interface Description Language)
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 20
diff changeset
3 " Created By: Jody Goldberg
dc8197342755 updated for version 7.0d04
vimboss
parents: 20
diff changeset
4 " Maintainer: Michael Geddes <vim@frog.wheelycreek.net>
dc8197342755 updated for version 7.0d04
vimboss
parents: 20
diff changeset
5 " Last Change: Thu Apr 13 2006
dc8197342755 updated for version 7.0d04
vimboss
parents: 20
diff changeset
6
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " This is an experiment. IDL's structure is simple enough to permit a full
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " grammar based approach to rather than using a few heuristics. The result
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " is large and somewhat repetative but seems to work.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
12 " There are some Microsoft extensions to idl files that are here. Some of
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
13 " them are disabled by defining idl_no_ms_extensions.
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
14 "
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
15 " The more complex of the extensions are disabled by defining idl_no_extensions.
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
16 "
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 20
diff changeset
17 " History:
dc8197342755 updated for version 7.0d04
vimboss
parents: 20
diff changeset
18 " 2.0: Michael's new version
dc8197342755 updated for version 7.0d04
vimboss
parents: 20
diff changeset
19 " 2.1: Support for Vim 7 spell (Anduin Withers)
dc8197342755 updated for version 7.0d04
vimboss
parents: 20
diff changeset
20 "
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
21
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
22 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
26 if exists("idlsyntax_showerror")
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
27 syn match idlError +\S+ skipwhite skipempty nextgroup=idlError
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
28 endif
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
29
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
30 syn region idlCppQuote start='\<cpp_quote\s*(' end=')' contains=idlString
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
31
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " Misc basic
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
33 syn match idlId contained "[a-zA-Z][a-zA-Z0-9_]*" skipwhite skipempty nextgroup=idlEnumComma,idlEnumNumber
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
34 syn match idlEnumComma contained ","
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
35 syn match idlEnumNumber contained "=" skipwhite skipempty nextgroup=idlString,idlLiteral
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
36 syn match idlSemiColon contained ";"
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
37 syn match idlCommaArg contained "," skipempty skipwhite nextgroup=idlSimpDecl
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
38 syn region idlArraySize1 contained start=:\[: end=:\]: skipempty skipwhite nextgroup=idlArraySize1,idlError,idlSemiColon,idlCommaArg contains=idlArraySize1,idlLiteral
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
39 syn match idlSimpDecl contained "[a-zA-Z][a-zA-Z0-9_]*" skipempty skipwhite nextgroup=idlError,idlSemiColon,idlCommaArg,idlArraySize1
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 20
diff changeset
40 syn region idlString contained start=+"+ skip=+\\\(\\\\\)*"+ end=+"+ contains=@Spell
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
41 syn match idlLiteral contained "[1-9]\d*\(\.\d*\)\="
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
42 syn match idlLiteral contained "0"
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
43 syn match idlLiteral contained "\.\d\+"
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
44 syn match idlLiteral contained "0x[0-9A-Fa-f]\+"
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
45 syn match idlLiteral contained "0[0-7]\+"
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
46 syn keyword idlLiteral contained TRUE FALSE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 " Comments
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
49 syn keyword idlTodo contained TODO FIXME XXX
829
dc8197342755 updated for version 7.0d04
vimboss
parents: 20
diff changeset
50 syn region idlComment start="/\*" end="\*/" contains=idlTodo,@Spell
dc8197342755 updated for version 7.0d04
vimboss
parents: 20
diff changeset
51 syn match idlComment "//.*" contains=idlTodo,@Spell
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
52 syn match idlCommentError "\*/"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 " C style Preprocessor
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
55 syn region idlIncluded contained start=+"+ skip=+\\\(\\\\\)*"+ end=+"+
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
56 syn match idlIncluded contained "<[^>]*>"
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
57 syn match idlInclude "^[ \t]*#[ \t]*include\>[ \t]*["<]" contains=idlIncluded,idlString
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
58 syn region idlPreCondit start="^[ \t]*#[ \t]*\(if\>\|ifdef\>\|ifndef\>\|elif\>\|else\>\|endif\>\)" skip="\\$" end="$" contains=idlComment,idlCommentError
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
59 syn region idlDefine start="^[ \t]*#[ \t]*\(define\>\|undef\>\)" skip="\\$" end="$" contains=idlLiteral,idlString
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " Constants
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
62 syn keyword idlConst const skipempty skipwhite nextgroup=idlBaseType,idlBaseTypeInt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 " Attribute
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
65 syn keyword idlROAttr readonly skipempty skipwhite nextgroup=idlAttr
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
66 syn keyword idlAttr attribute skipempty skipwhite nextgroup=idlBaseTypeInt,idlBaseType
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 " Types
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
69 syn region idlD4 contained start="<" end=">" skipempty skipwhite nextgroup=idlSimpDecl contains=idlSeqType,idlBaseTypeInt,idlBaseType,idlLiteral
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
70 syn keyword idlSeqType contained sequence skipempty skipwhite nextgroup=idlD4
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
71 syn keyword idlBaseType contained float double char boolean octet any skipempty skipwhite nextgroup=idlSimpDecl
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
72 syn keyword idlBaseTypeInt contained short long skipempty skipwhite nextgroup=idlSimpDecl
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
73 syn keyword idlBaseType contained unsigned skipempty skipwhite nextgroup=idlBaseTypeInt
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
74 syn region idlD1 contained start="<" end=">" skipempty skipwhite nextgroup=idlSimpDecl contains=idlString,idlLiteral
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
75 syn keyword idlBaseType contained string skipempty skipwhite nextgroup=idlD1,idlSimpDecl
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
76 syn match idlBaseType contained "[a-zA-Z0-9_]\+[ \t]*\(::[ \t]*[a-zA-Z0-9_]\+\)*" skipempty skipwhite nextgroup=idlSimpDecl
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 " Modules
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
79 syn region idlModuleContent contained start="{" end="}" skipempty skipwhite nextgroup=idlError,idlSemiColon contains=idlUnion,idlStruct,idlEnum,idlInterface,idlComment,idlTypedef,idlConst,idlException,idlModule
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
80 syn match idlModuleName contained "[a-zA-Z0-9_]\+" skipempty skipwhite nextgroup=idlModuleContent,idlError,idlSemiColon
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
81 syn keyword idlModule module skipempty skipwhite nextgroup=idlModuleName
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 " Interfaces
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
84 syn cluster idlCommentable contains=idlComment
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
85 syn cluster idlContentCluster contains=idlUnion,idlStruct,idlEnum,idlROAttr,idlAttr,idlOp,idlOneWayOp,idlException,idlConst,idlTypedef,idlAttributes,idlErrorSquareBracket,idlErrorBracket,idlInterfaceSections
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
86
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
87 syn region idlInterfaceContent contained start="{" end="}" skipempty skipwhite nextgroup=idlError,idlSemiColon contains=@idlContentCluster,@idlCommentable
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
88 syn match idlInheritFrom2 contained "," skipempty skipwhite nextgroup=idlInheritFrom
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
89 syn match idlInheritFrom contained "[a-zA-Z0-9_]\+[ \t]*\(::[ \t]*[a-zA-Z0-9_]\+\)*" skipempty skipwhite nextgroup=idlInheritFrom2,idlInterfaceContent
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
90 syn match idlInherit contained ":" skipempty skipwhite nextgroup=idlInheritFrom
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
91 syn match idlInterfaceName contained "[a-zA-Z0-9_]\+" skipempty skipwhite nextgroup=idlInterfaceContent,idlInherit,idlError,idlSemiColon
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
92 syn keyword idlInterface interface dispinterface skipempty skipwhite nextgroup=idlInterfaceName
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
93 syn keyword idlInterfaceSections contained properties methods skipempty skipwhite nextgroup=idlSectionColon,idlError
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
94 syn match idlSectionColon contained ":"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
97 syn match idlLibraryName contained "[a-zA-Z0-9_]\+" skipempty skipwhite nextgroup=idlLibraryContent,idlError,idlSemiColon
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
98 syn keyword idlLibrary library skipempty skipwhite nextgroup=idlLibraryName
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
99 syn region idlLibraryContent contained start="{" end="}" skipempty skipwhite nextgroup=idlError,idlSemiColon contains=@idlCommentable,idlAttributes,idlErrorSquareBracket,idlErrorBracket,idlImportlib,idlCoclass,idlTypedef,idlInterface
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
100
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
101 syn keyword idlImportlib contained importlib skipempty skipwhite nextgroup=idlStringArg
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
102 syn region idlStringArg contained start="(" end=")" contains=idlString nextgroup=idlError,idlSemiColon,idlErrorBrace,idlErrorSquareBracket
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
103
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
104 syn keyword idlCoclass coclass contained skipempty skipwhite nextgroup=idlCoclassName
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
105 syn match idlCoclassName "[a-zA-Z0-9_]\+" contained skipempty skipwhite nextgroup=idlCoclassDefinition,idlError,idlSemiColon
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
106
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
107 syn region idlCoclassDefinition contained start="{" end="}" contains=idlCoclassAttributes,idlInterface,idlErrorBracket,idlErrorSquareBracket skipempty skipwhite nextgroup=idlError,idlSemiColon
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
108 syn region idlCoclassAttributes contained start=+\[+ end=+]+ skipempty skipwhite nextgroup=idlInterface contains=idlErrorBracket,idlErrorBrace,idlCoclassAttribute
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
109 syn keyword idlCoclassAttribute contained default source
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
110 "syn keyword idlInterface interface skipempty skipwhite nextgroup=idlInterfaceStubName
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
111
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
112 syn match idlImportString +"\f\+"+ skipempty skipwhite nextgroup=idlError,idlSemiColon
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
113 syn keyword idlImport import skipempty skipwhite nextgroup=idlImportString
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
114
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
115 syn region idlAttributes start="\[" end="\]" contains=idlAttribute,idlAttributeParam,idlErrorBracket,idlErrorBrace,idlComment
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
116 syn keyword idlAttribute contained propput propget propputref id helpstring object uuid pointer_default
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
117 if !exists('idl_no_ms_extensions')
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
118 syn keyword idlAttribute contained nonextensible dual version aggregatable restricted hidden noncreatable oleautomation
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
119 endif
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
120 syn region idlAttributeParam contained start="(" end=")" contains=idlString,idlUuid,idlLiteral,idlErrorBrace,idlErrorSquareBracket
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
121 " skipwhite nextgroup=idlArraySize,idlParmList contains=idlArraySize,idlLiteral
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
122 syn match idlErrorBrace contained "}"
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
123 syn match idlErrorBracket contained ")"
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
124 syn match idlErrorSquareBracket contained "\]"
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
125
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
126 syn match idlUuid contained +[0-9a-zA-Z]\{8}-\([0-9a-zA-Z]\{4}-\)\{3}[0-9a-zA-Z]\{12}+
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
127
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 " Raises
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
129 syn keyword idlRaises contained raises skipempty skipwhite nextgroup=idlRaises,idlContext,idlError,idlSemiColon
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 " Context
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
132 syn keyword idlContext contained context skipempty skipwhite nextgroup=idlRaises,idlContext,idlError,idlSemiColon
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 " Operation
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
135 syn match idlParmList contained "," skipempty skipwhite nextgroup=idlOpParms
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
136 syn region idlArraySize contained start="\[" end="\]" skipempty skipwhite nextgroup=idlArraySize,idlParmList contains=idlArraySize,idlLiteral
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
137 syn match idlParmName contained "[a-zA-Z0-9_]\+" skipempty skipwhite nextgroup=idlParmList,idlArraySize
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
138 syn keyword idlParmInt contained short long skipempty skipwhite nextgroup=idlParmName
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
139 syn keyword idlParmType contained unsigned skipempty skipwhite nextgroup=idlParmInt
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
140 syn region idlD3 contained start="<" end=">" skipempty skipwhite nextgroup=idlParmName contains=idlString,idlLiteral
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
141 syn keyword idlParmType contained string skipempty skipwhite nextgroup=idlD3,idlParmName
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
142 syn keyword idlParmType contained void float double char boolean octet any skipempty skipwhite nextgroup=idlParmName
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
143 syn match idlParmType contained "[a-zA-Z0-9_]\+[ \t]*\(::[ \t]*[a-zA-Z0-9_]\+\)*" skipempty skipwhite nextgroup=idlParmName
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
144 syn keyword idlOpParms contained in out inout skipempty skipwhite nextgroup=idlParmType
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
145
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
146 if !exists('idl_no_ms_extensions')
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
147 syn keyword idlOpParms contained retval optional skipempty skipwhite nextgroup=idlParmType
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
148 syn match idlOpParms contained +\<\(iid_is\|defaultvalue\)\s*([^)]*)+ skipempty skipwhite nextgroup=idlParamType
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
150 syn keyword idlVariantType contained BSTR VARIANT VARIANT_BOOL long short unsigned double CURRENCY DATE
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
151 syn region idlSafeArray contained matchgroup=idlVariantType start=+SAFEARRAY(\s*+ end=+)+ contains=idlVariantType
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
152 endif
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
153
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
154 syn region idlOpContents contained start="(" end=")" skipempty skipwhite nextgroup=idlRaises,idlContext,idlError,idlSemiColon contains=idlOpParms,idlSafeArray,idlVariantType,@idlCommentable
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
155 syn match idlOpName contained "[a-zA-Z0-9_]\+" skipempty skipwhite nextgroup=idlOpContents
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
156 syn keyword idlOpInt contained short long skipempty skipwhite nextgroup=idlOpName
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
157 syn region idlD2 contained start="<" end=">" skipempty skipwhite nextgroup=idlOpName contains=idlString,idlLiteral
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
158 syn keyword idlOp contained unsigned skipempty skipwhite nextgroup=idlOpInt
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
159 syn keyword idlOp contained string skipempty skipwhite nextgroup=idlD2,idlOpName
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
160 syn keyword idlOp contained void float double char boolean octet any skipempty skipwhite nextgroup=idlOpName
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
161 syn match idlOp contained "[a-zA-Z0-9_]\+[ \t]*\(::[ \t]*[a-zA-Z0-9_]\+\)*" skipempty skipwhite nextgroup=idlOpName
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
162 syn keyword idlOp contained void skipempty skipwhite nextgroup=idlOpName
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
163 syn keyword idlOneWayOp contained oneway skipempty skipwhite nextgroup=idOp
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 " Enum
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
166 syn region idlEnumContents contained start="{" end="}" skipempty skipwhite nextgroup=idlError,idlSemiColon,idlSimpDecl contains=idlId,idlAttributes,@idlCommentable
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
167 syn match idlEnumName contained "[a-zA-Z0-9_]\+" skipempty skipwhite nextgroup=idlEnumContents
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
168 syn keyword idlEnum enum skipempty skipwhite nextgroup=idlEnumName,idlEnumContents
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 " Typedef
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
171 syn keyword idlTypedef typedef skipempty skipwhite nextgroup=idlTypedefOtherTypeQualifier,idlDefBaseType,idlDefBaseTypeInt,idlDefSeqType,idlDefv1Enum,idlDefEnum,idlDefOtherType,idlDefAttributes,idlError
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
172
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
173 if !exists('idl_no_extensions')
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
174 syn keyword idlTypedefOtherTypeQualifier contained struct enum interface nextgroup=idlDefBaseType,idlDefBaseTypeInt,idlDefSeqType,idlDefv1Enum,idlDefEnum,idlDefOtherType,idlDefAttributes,idlError skipwhite
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
175
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
176 syn region idlDefAttributes contained start="\[" end="\]" contains=idlAttribute,idlAttributeParam,idlErrorBracket,idlErrorBrace skipempty skipwhite nextgroup=idlDefBaseType,idlDefBaseTypeInt,idlDefSeqType,idlDefv1Enum,idlDefEnum,idlDefOtherType,idlError
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
177
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
178 syn keyword idlDefBaseType contained float double char boolean octet any skipempty skipwhite nextgroup=idlTypedefDecl,idlError
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
179 syn keyword idlDefBaseTypeInt contained short long skipempty skipwhite nextgroup=idlTypedefDecl,idlError
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
180 syn match idlDefOtherType contained +\<\k\+\>+ skipempty nextgroup=idlTypedefDecl,idlError
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
181 " syn keyword idlDefSeqType contained sequence skipempty skipwhite nextgroup=idlD4
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
182
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
183 " Enum typedef
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
184 syn keyword idlDefEnum contained enum skipempty skipwhite nextgroup=idlDefEnumName,idlDefEnumContents
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
185 syn match idlDefEnumName contained "[a-zA-Z0-9_]\+" skipempty skipwhite nextgroup=idlDefEnumContents,idlTypedefDecl
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
186 syn region idlDefEnumContents contained start="{" end="}" skipempty skipwhite nextgroup=idlError,idlTypedefDecl contains=idlId,idlAttributes
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
187
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
188 syn match idlTypedefDecl contained "[a-zA-Z0-9_]\+" skipempty skipwhite nextgroup=idlError,idlSemiColon
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
189 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 " Struct
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
192 syn region idlStructContent contained start="{" end="}" skipempty skipwhite nextgroup=idlError,idlSemiColon,idlSimpDecl contains=idlBaseType,idlBaseTypeInt,idlSeqType,@idlCommentable,idlEnum,idlUnion
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
193 syn match idlStructName contained "[a-zA-Z0-9_]\+" skipempty skipwhite nextgroup=idlStructContent
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
194 syn keyword idlStruct struct skipempty skipwhite nextgroup=idlStructName
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 " Exception
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
197 syn keyword idlException exception skipempty skipwhite nextgroup=idlStructName
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 " Union
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
200 syn match idlColon contained ":" skipempty skipwhite nextgroup=idlCase,idlSeqType,idlBaseType,idlBaseTypeInt
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
201 syn region idlCaseLabel contained start="" skip="::" end=":"me=e-1 skipempty skipwhite nextgroup=idlColon contains=idlLiteral,idlString
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
202 syn keyword idlCase contained case skipempty skipwhite nextgroup=idlCaseLabel
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
203 syn keyword idlCase contained default skipempty skipwhite nextgroup=idlColon
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
204 syn region idlUnionContent contained start="{" end="}" skipempty skipwhite nextgroup=idlError,idlSemiColon,idlSimpDecl contains=idlCase
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
205 syn region idlSwitchType contained start="(" end=")" skipempty skipwhite nextgroup=idlUnionContent
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
206 syn keyword idlUnionSwitch contained switch skipempty skipwhite nextgroup=idlSwitchType
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
207 syn match idlUnionName contained "[a-zA-Z0-9_]\+" skipempty skipwhite nextgroup=idlUnionSwitch
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
208 syn keyword idlUnion union skipempty skipwhite nextgroup=idlUnionName
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
210 if !exists('idl_no_extensions')
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
211 syn sync match idlInterfaceSync grouphere idlInterfaceContent "\<\(disp\)\=interface\>\s\+\k\+\s*:\s*\k\+\_s*{" skipempty skipwhite nextgroup=idlError,idlSemiColon contains=@idlContentCluster,@idlCommentable
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
212 syn sync maxlines=1000 minlines=100
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
213 else
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
214 syn sync lines=200
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
215 endif
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
216 " syn sync fromstart
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
217
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
218 if !exists("did_idl_syntax_inits")
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
219 let did_idl_syntax_inits = 1
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
220 " The default methods for highlighting. Can be overridden later
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
221 command -nargs=+ HiLink hi def link <args>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
223 HiLink idlInclude Include
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
224 HiLink idlPreProc PreProc
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
225 HiLink idlPreCondit PreCondit
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
226 HiLink idlDefine Macro
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
227 HiLink idlIncluded String
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
228 HiLink idlString String
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
229 HiLink idlComment Comment
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
230 HiLink idlTodo Todo
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
231 HiLink idlLiteral Number
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
232 HiLink idlUuid Number
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
233 HiLink idlType Type
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
234 HiLink idlVariantType idlType
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
236 HiLink idlModule Keyword
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
237 HiLink idlInterface Keyword
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
238 HiLink idlEnum Keyword
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
239 HiLink idlStruct Keyword
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
240 HiLink idlUnion Keyword
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
241 HiLink idlTypedef Keyword
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
242 HiLink idlException Keyword
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
243 HiLink idlTypedefOtherTypeQualifier keyword
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
244
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
245 HiLink idlModuleName Typedef
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
246 HiLink idlInterfaceName Typedef
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
247 HiLink idlEnumName Typedef
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
248 HiLink idlStructName Typedef
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
249 HiLink idlUnionName Typedef
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
251 HiLink idlBaseTypeInt idlType
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
252 HiLink idlBaseType idlType
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
253 HiLink idlSeqType idlType
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
254 HiLink idlD1 Paren
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
255 HiLink idlD2 Paren
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
256 HiLink idlD3 Paren
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
257 HiLink idlD4 Paren
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
258 "HiLink idlArraySize Paren
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
259 "HiLink idlArraySize1 Paren
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
260 HiLink idlModuleContent Paren
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
261 HiLink idlUnionContent Paren
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
262 HiLink idlStructContent Paren
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
263 HiLink idlEnumContents Paren
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
264 HiLink idlInterfaceContent Paren
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
266 HiLink idlSimpDecl Identifier
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
267 HiLink idlROAttr StorageClass
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
268 HiLink idlAttr Keyword
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
269 HiLink idlConst StorageClass
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
270
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
271 HiLink idlOneWayOp StorageClass
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
272 HiLink idlOp idlType
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
273 HiLink idlParmType idlType
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
274 HiLink idlOpName Function
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
275 HiLink idlOpParms SpecialComment
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
276 HiLink idlParmName Identifier
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
277 HiLink idlInheritFrom Identifier
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
278 HiLink idlAttribute SpecialComment
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
280 HiLink idlId Constant
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
281 "HiLink idlCase Keyword
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
282 HiLink idlCaseLabel Constant
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
283
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
284 HiLink idlErrorBracket Error
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
285 HiLink idlErrorBrace Error
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
286 HiLink idlErrorSquareBracket Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
288 HiLink idlImport Keyword
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
289 HiLink idlImportString idlString
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
290 HiLink idlCoclassAttribute StorageClass
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
291 HiLink idlLibrary Keyword
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
292 HiLink idlImportlib Keyword
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
293 HiLink idlCoclass Keyword
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
294 HiLink idlLibraryName Typedef
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
295 HiLink idlCoclassName Typedef
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
296 " hi idlLibraryContent guifg=red
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
297 HiLink idlTypedefDecl Typedef
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
298 HiLink idlDefEnum Keyword
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
299 HiLink idlDefv1Enum Keyword
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
300 HiLink idlDefEnumName Typedef
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
301 HiLink idlDefEnumContents Paren
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
302 HiLink idlDefBaseTypeInt idlType
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
303 HiLink idlDefBaseType idlType
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
304 HiLink idlDefSeqType idlType
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
305 HiLink idlInterfaceSections Label
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
307 if exists("idlsyntax_showerror")
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
308 if exists("idlsyntax_showerror_soft")
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
309 hi default idlError guibg=#d0ffd0
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
310 else
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
311 HiLink idlError Error
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
312 endif
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
313 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 let b:current_syntax = "idl"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 16
diff changeset
319 " vim: sw=2 et