annotate runtime/syntax/idl.vim @ 11791:40665c258263

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