annotate runtime/syntax/msidl.vim @ 30612:0d1d92dd953b v9.0.0641

patch 9.0.0641: missing part of the new option code Commit: https://github.com/vim/vim/commit/bbbda8fd81f6d720962b67ae885825bad9be4456 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 2 21:46:58 2022 +0100 patch 9.0.0641: missing part of the new option code Problem: Missing part of the new option code. Solution: Add missing WV_SMS.
author Bram Moolenaar <Bram@vim.org>
date Sun, 02 Oct 2022 23:00:03 +0200
parents 46763b01cd9a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: MS IDL (Microsoft dialect of Interface Description Language)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Vadim Zeitlin <vadim@wxwindows.org>
3356
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
4 " Last Change: 2012 Feb 12 by Thilo Six
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3356
diff changeset
6 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3356
diff changeset
7 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3356
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
11 let s:cpo_save = &cpo
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
12 set cpo&vim
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
13
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Misc basic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn match msidlId "[a-zA-Z][a-zA-Z0-9_]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn match msidlUUID "{\?[[:xdigit:]]\{8}-\([[:xdigit:]]\{4}-\)\{3}[[:xdigit:]]\{12}}\?"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn region msidlString start=/"/ skip=/\\\(\\\\\)*"/ end=/"/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match msidlLiteral "\d\+\(\.\d*\)\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match msidlLiteral "\.\d\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match msidlSpecial contained "[]\[{}:]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword msidlTodo contained TODO FIXME XXX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn region msidlComment start="/\*" end="\*/" contains=msidlTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match msidlComment "//.*" contains=msidlTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match msidlCommentError "\*/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " C style Preprocessor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn region msidlIncluded contained start=+"+ skip=+\\\(\\\\\)*"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match msidlIncluded contained "<[^>]*>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match msidlInclude "^[ \t]*#[ \t]*include\>[ \t]*["<]" contains=msidlIncluded,msidlString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn region msidlPreCondit start="^[ \t]*#[ \t]*\(if\>\|ifdef\>\|ifndef\>\|elif\>\|else\>\|endif\>\)" skip="\\$" end="$" contains=msidlComment,msidlCommentError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn region msidlDefine start="^[ \t]*#[ \t]*\(define\>\|undef\>\)" skip="\\$" end="$" contains=msidlLiteral, msidlString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " Attributes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword msidlAttribute contained in out propget propput propputref retval
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword msidlAttribute contained aggregatable appobject binadable coclass control custom default defaultbind defaultcollelem defaultvalue defaultvtable dispinterface displaybind dual entry helpcontext helpfile helpstring helpstringdll hidden id immediatebind lcid library licensed nonbrowsable noncreatable nonextensible oleautomation optional object public readonly requestedit restricted source string uidefault usesgetlasterror vararg version
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match msidlAttribute /uuid(.*)/he=s+4 contains=msidlUUID
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match msidlAttribute /helpstring(.*)/he=s+10 contains=msidlString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn region msidlAttributes start="\[" end="]" keepend contains=msidlSpecial,msidlString,msidlAttribute,msidlComment,msidlCommentError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 " Keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword msidlEnum enum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword msidlImport import importlib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword msidlStruct interface library coclass
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword msidlTypedef typedef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 " Types
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword msidlStandardType byte char double float hyper int long short void wchar_t
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword msidlStandardType BOOL BSTR HRESULT VARIANT VARIANT_BOOL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn region msidlSafeArray start="SAFEARRAY(" end=")" contains=msidlStandardType
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn sync lines=50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3356
diff changeset
56 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
58 hi def link msidlInclude Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
59 hi def link msidlPreProc PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
60 hi def link msidlPreCondit PreCondit
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
61 hi def link msidlDefine Macro
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
62 hi def link msidlIncluded String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
63 hi def link msidlString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
64 hi def link msidlComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
65 hi def link msidlTodo Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
66 hi def link msidlSpecial SpecialChar
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
67 hi def link msidlLiteral Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
68 hi def link msidlUUID Number
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
70 hi def link msidlImport Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
71 hi def link msidlEnum StorageClass
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
72 hi def link msidlStruct Structure
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
73 hi def link msidlTypedef Typedef
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
74 hi def link msidlAttribute StorageClass
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
76 hi def link msidlStandardType Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
77 hi def link msidlSafeArray Type
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 let b:current_syntax = "msidl"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3356
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
82 let &cpo = s:cpo_save
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
83 unlet s:cpo_save
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 " vi: set ts=8 sw=4: