Mercurial > vim
annotate runtime/syntax/d.vim @ 7538:c9fc24b76293 v7.4.1070
commit https://github.com/vim/vim/commit/8a5115cf18751022387af2085f374d38c60dde83
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 9 19:41:11 2016 +0100
patch 7.4.1070
Problem: The Tcl interface can't be loaded dynamically on Unix.
Solution: Make it possible to load it dynamically. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 09 Jan 2016 19:45:05 +0100 |
parents | 173c9c860e42 |
children | 00d64eb49ce1 |
rev | line source |
---|---|
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
1 " Vim syntax file for the D programming language (version 1.076 and 2.063). |
7 | 2 " |
2581 | 3 " Language: D |
4 " Maintainer: Jesse Phillips <Jesse.K.Phillips+D@gmail.com> | |
5400 | 5 " Last Change: 2013 October 5 |
6 " Version: 0.26 | |
2043 | 7 " |
8 " Contributors: | |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
9 " - Jason Mills: original Maintainer |
3281 | 10 " - Kirk McDonald |
11 " - Tim Keating | |
12 " - Frank Benoit | |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
13 " - Shougo Matsushita |
3281 | 14 " - Ellery Newcomer |
15 " - Steven N. Oliver | |
16 " - Sohgo Takeuchi | |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
17 " - Robert Clipsham |
2043 | 18 " |
3281 | 19 " Please submit bugs/comments/suggestions to the github repo: |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
20 " https://github.com/JesseKPhillips/d.vim |
7 | 21 " |
22 " Options: | |
2043 | 23 " d_comment_strings - Set to highlight strings and numbers in comments. |
7 | 24 " |
2043 | 25 " d_hl_operator_overload - Set to highlight D's specially named functions |
26 " that when overloaded implement unary and binary operators (e.g. opCmp). | |
7 | 27 " |
3281 | 28 " d_hl_object_types - Set to highlight some common types from object.di. |
7 | 29 |
30 " Quit when a syntax file was already loaded | |
31 if exists("b:current_syntax") | |
32 finish | |
33 endif | |
34 | |
3281 | 35 " Support cpoptions |
36 let s:cpo_save = &cpo | |
37 set cpo&vim | |
38 | |
39 " Set the current syntax to be known as d | |
40 let b:current_syntax = "d" | |
41 | |
7 | 42 " Keyword definitions |
43 " | |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
44 syn keyword dExternal contained import module |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
45 syn keyword dAssert assert |
2581 | 46 syn keyword dConditional if else switch |
47 syn keyword dBranch goto break continue | |
48 syn keyword dRepeat while for do foreach foreach_reverse | |
49 syn keyword dBoolean true false | |
50 syn keyword dConstant null | |
51 syn keyword dConstant __FILE__ __LINE__ __EOF__ __VERSION__ | |
52 syn keyword dConstant __DATE__ __TIME__ __TIMESTAMP__ __VENDOR__ | |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
53 syn keyword dConstant __MODULE__ __FUNCTION__ __PRETTY_FUNCTION__ |
2581 | 54 syn keyword dTypedef alias typedef |
55 syn keyword dStructure template interface class struct union | |
56 syn keyword dEnum enum | |
57 syn keyword dOperator new delete typeof typeid cast align is | |
58 syn keyword dOperator this super | |
7 | 59 if exists("d_hl_operator_overload") |
2581 | 60 syn keyword dOpOverload opNeg opCom opPostInc opPostDec opCast opAdd |
61 syn keyword dOpOverload opSub opSub_r opMul opDiv opDiv_r opMod | |
62 syn keyword dOpOverload opMod_r opAnd opOr opXor opShl opShl_r opShr | |
63 syn keyword dOpOverload opShr_r opUShr opUShr_r opCat | |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
64 syn keyword dOpOverload opCat_r opEquals opCmp |
2581 | 65 syn keyword dOpOverload opAssign opAddAssign opSubAssign opMulAssign |
66 syn keyword dOpOverload opDivAssign opModAssign opAndAssign | |
67 syn keyword dOpOverload opOrAssign opXorAssign opShlAssign | |
68 syn keyword dOpOverload opShrAssign opUShrAssign opCatAssign | |
69 syn keyword dOpOverload opIndex opIndexAssign opIndexOpAssign | |
70 syn keyword dOpOverload opCall opSlice opSliceAssign opSliceOpAssign | |
71 syn keyword dOpOverload opPos opAdd_r opMul_r opAnd_r opOr_r opXor_r | |
72 syn keyword dOpOverload opIn opIn_r opPow opDispatch opStar opDot | |
3281 | 73 syn keyword dOpOverload opApply opApplyReverse opDollar |
2581 | 74 syn keyword dOpOverload opUnary opIndexUnary opSliceUnary |
75 syn keyword dOpOverload opBinary opBinaryRight | |
7 | 76 endif |
2581 | 77 |
3281 | 78 syn keyword dType byte ubyte short ushort int uint long ulong cent ucent |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
79 syn keyword dType void bool Object |
3281 | 80 syn keyword dType float double real |
81 syn keyword dType ushort int uint long ulong float | |
82 syn keyword dType char wchar dchar string wstring dstring | |
83 syn keyword dType ireal ifloat idouble creal cfloat cdouble | |
84 syn keyword dType size_t ptrdiff_t sizediff_t equals_t hash_t | |
85 if exists("d_hl_object_types") | |
86 syn keyword dType Object Throwable AssociativeArray Error Exception | |
87 syn keyword dType Interface OffsetTypeInfo TypeInfo TypeInfo_Typedef | |
88 syn keyword dType TypeInfo_Enum TypeInfo_Pointer TypeInfo_Array | |
89 syn keyword dType TypeInfo_StaticArray TypeInfo_AssociativeArray | |
90 syn keyword dType TypeInfo_Function TypeInfo_Delegate TypeInfo_Class | |
91 syn keyword dType ClassInfo TypeInfo_Interface TypeInfo_Struct | |
92 syn keyword dType TypeInfo_Tuple TypeInfo_Const TypeInfo_Invariant | |
93 syn keyword dType TypeInfo_Shared TypeInfo_Inout MemberInfo | |
94 syn keyword dType MemberInfo_field MemberInfo_function ModuleInfo | |
95 endif | |
2581 | 96 syn keyword dDebug deprecated unittest invariant |
97 syn keyword dExceptions throw try catch finally | |
3281 | 98 syn keyword dScopeDecl public protected private export package |
2581 | 99 syn keyword dStatement debug return with |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
100 syn keyword dStatement function delegate __ctfe mixin macro __simd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
101 syn keyword dStatement in out body |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
102 syn keyword dStorageClass contained in out scope |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
103 syn keyword dStorageClass inout ref lazy pure nothrow |
2581 | 104 syn keyword dStorageClass auto static override final abstract volatile |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
105 syn keyword dStorageClass __gshared __vector |
2581 | 106 syn keyword dStorageClass synchronized shared immutable const lazy |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
107 syn keyword dIdentifier _arguments _argptr __vptr __monitor |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
108 syn keyword dIdentifier _ctor _dtor __argTypes __overloadset |
2581 | 109 syn keyword dScopeIdentifier contained exit success failure |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
110 syn keyword dTraitsIdentifier contained isAbstractClass isArithmetic |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
111 syn keyword dTraitsIdentifier contained isAssociativeArray isFinalClass |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
112 syn keyword dTraitsIdentifier contained isPOD isNested isFloating |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
113 syn keyword dTraitsIdentifier contained isIntegral isScalar isStaticArray |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
114 syn keyword dTraitsIdentifier contained isUnsigned isVirtualFunction |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
115 syn keyword dTraitsIdentifier contained isVirtualMethod isAbstractFunction |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
116 syn keyword dTraitsIdentifier contained isFinalFunction isStaticFunction |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
117 syn keyword dTraitsIdentifier contained isRef isOut isLazy hasMember |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
118 syn keyword dTraitsIdentifier contained identifier getAttributes getMember |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
119 syn keyword dTraitsIdentifier contained getOverloads getProtection |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
120 syn keyword dTraitsIdentifier contained getVirtualFunctions |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
121 syn keyword dTraitsIdentifier contained getVirtualMethods parent |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
122 syn keyword dTraitsIdentifier contained classInstanceSize allMembers |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
123 syn keyword dTraitsIdentifier contained derivedMembers isSame compiles |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
124 syn keyword dPragmaIdentifier contained lib msg startaddress GNU_asm |
3281 | 125 syn keyword dExternIdentifier contained Windows Pascal Java System D |
2581 | 126 syn keyword dAttribute contained safe trusted system |
127 syn keyword dAttribute contained property disable | |
3281 | 128 syn keyword dVersionIdentifier contained DigitalMars GNU LDC SDC D_NET |
129 syn keyword dVersionIdentifier contained X86 X86_64 ARM PPC PPC64 IA64 MIPS MIPS64 Alpha | |
130 syn keyword dVersionIdentifier contained SPARC SPARC64 S390 S390X HPPA HPPA64 SH SH64 | |
131 syn keyword dVersionIdentifier contained linux Posix OSX FreeBSD Windows Win32 Win64 | |
132 syn keyword dVersionIdentifier contained OpenBSD BSD Solaris AIX SkyOS SysV3 SysV4 Hurd | |
133 syn keyword dVersionIdentifier contained Cygwin MinGW | |
134 syn keyword dVersionIdentifier contained LittleEndian BigEndian | |
135 syn keyword dVersionIdentifier contained D_InlineAsm_X86 D_InlineAsm_X86_64 | |
136 syn keyword dVersionIdentifier contained D_Version2 D_Coverage D_Ddoc D_LP64 D_PIC | |
137 syn keyword dVersionIdentifier contained unittest none all | |
2581 | 138 |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
139 syn cluster dComment contains=dNestedComment,dBlockComment,dLineComment |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
140 |
2581 | 141 " Highlight the sharpbang |
142 syn match dSharpBang "\%^#!.*" display | |
7 | 143 |
2043 | 144 " Attributes/annotations |
2581 | 145 syn match dAnnotation "@[_$a-zA-Z][_$a-zA-Z0-9_]*\>" contains=dAttribute |
146 | |
147 " Version Identifiers | |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
148 syn match dVersion "\<version\>" |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
149 syn match dVersion "\<version\s*([_a-zA-Z][_a-zA-Z0-9]*\>"he=s+7 contains=dVersionIdentifier |
2581 | 150 |
151 " Scope Identifiers | |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
152 syn match dStatement "\<scope\>" |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
153 syn match dStatement "\<scope\s*([_a-zA-Z][_a-zA-Z0-9]*\>"he=s+5 contains=dScopeIdentifier |
3281 | 154 |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
155 " Traits Statement |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
156 syn match dStatement "\<__traits\>" |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
157 syn match dStatement "\<__traits\s*([_a-zA-Z][_a-zA-Z0-9]*\>"he=s+8 contains=dTraitsIdentifier |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
158 |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
159 " Pragma Statement |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
160 syn match dPragma "\<pragma\>" |
5400 | 161 syn match dPragma "\<pragma\s*([_a-zA-Z][_a-zA-Z0-9]*\>"he=s+6 contains=dPragmaIdentifier |
3281 | 162 |
163 " Necessary to highlight C++ in extern modifiers. | |
164 syn match dExternIdentifier "C\(++\)\?" contained | |
165 | |
166 " Extern Identifiers | |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
167 syn match dExternal "\<extern\>" |
3281 | 168 syn match dExtern "\<extern\s*([_a-zA-Z][_a-zA-Z0-9\+]*\>"he=s+6 contains=dExternIdentifier |
2581 | 169 |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
170 " Make import a region to prevent highlighting keywords |
5400 | 171 syn region dImport start="import\_s" end=";" contains=dExternal,@dComment |
7 | 172 |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
173 " Make module a region to prevent highlighting keywords |
5400 | 174 syn region dImport start="module\_s" end=";" contains=dExternal,@dComment |
7 | 175 |
2043 | 176 " dTokens is used by the token string highlighting |
177 syn cluster dTokens contains=dExternal,dConditional,dBranch,dRepeat,dBoolean | |
178 syn cluster dTokens add=dConstant,dTypedef,dStructure,dOperator,dOpOverload | |
179 syn cluster dTokens add=dType,dDebug,dExceptions,dScopeDecl,dStatement | |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
180 syn cluster dTokens add=dStorageClass,dPragma,dAssert,dAnnotation,dEnum |
5400 | 181 syn cluster dTokens add=dParenString,dBrackString,dAngleString,dCurlyString |
182 syn cluster dTokens add=dTokenString,dDelimString,dHereString | |
2043 | 183 |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
184 " Create a match for parameter lists to identify storage class |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
185 syn region paramlist start="(" end=")" contains=@dTokens |
7 | 186 |
187 " Labels | |
188 " | |
189 " We contain dScopeDecl so public: private: etc. are not highlighted like labels | |
2043 | 190 syn match dUserLabel "^\s*[_$a-zA-Z][_$a-zA-Z0-9_]*\s*:"he=e-1 contains=dLabel,dScopeDecl,dEnum |
2581 | 191 syn keyword dLabel case default |
7 | 192 |
2043 | 193 syn cluster dTokens add=dUserLabel,dLabel |
194 | |
7 | 195 " Comments |
196 " | |
5400 | 197 syn match dCommentError display "\*/" |
198 syn match dNestedCommentError display "+/" | |
199 | |
2581 | 200 syn keyword dTodo contained TODO FIXME TEMP REFACTOR REVIEW HACK BUG XXX |
17 | 201 syn match dCommentStar contained "^\s*\*[^/]"me=e-1 |
202 syn match dCommentStar contained "^\s*\*$" | |
203 syn match dCommentPlus contained "^\s*+[^/]"me=e-1 | |
204 syn match dCommentPlus contained "^\s*+$" | |
7 | 205 if exists("d_comment_strings") |
17 | 206 syn region dBlockCommentString contained start=+"+ end=+"+ end=+\*/+me=s-1,he=s-1 contains=dCommentStar,dUnicode,dEscSequence,@Spell |
207 syn region dNestedCommentString contained start=+"+ end=+"+ end="+"me=s-1,he=s-1 contains=dCommentPlus,dUnicode,dEscSequence,@Spell | |
208 syn region dLineCommentString contained start=+"+ end=+$\|"+ contains=dUnicode,dEscSequence,@Spell | |
7 | 209 endif |
210 | |
5400 | 211 syn region dBlockComment start="/\*" end="\*/" contains=dBlockCommentString,dTodo,dCommentStartError,@Spell fold |
212 syn region dNestedComment start="/+" end="+/" contains=dNestedComment,dNestedCommentString,dTodo,@Spell fold | |
213 syn match dLineComment "//.*" contains=dLineCommentString,dTodo,@Spell | |
214 | |
17 | 215 hi link dLineCommentString dBlockCommentString |
216 hi link dBlockCommentString dString | |
217 hi link dNestedCommentString dString | |
218 hi link dCommentStar dBlockComment | |
219 hi link dCommentPlus dNestedComment | |
7 | 220 |
2043 | 221 syn cluster dTokens add=dBlockComment,dNestedComment,dLineComment |
222 | |
739 | 223 " /+ +/ style comments and strings that span multiple lines can cause |
224 " problems. To play it safe, set minlines to a large number. | |
225 syn sync minlines=200 | |
226 " Use ccomment for /* */ style comments | |
227 syn sync ccomment dBlockComment | |
7 | 228 |
229 " Characters | |
230 " | |
231 syn match dSpecialCharError contained "[^']" | |
232 | |
199 | 233 " Escape sequences (oct,specal char,hex,wchar, character entities \&xxx;) |
2043 | 234 " These are not contained because they are considered string literals. |
17 | 235 syn match dEscSequence "\\\(\o\{1,3}\|[\"\\'\\?ntbrfva]\|u\x\{4}\|U\x\{8}\|x\x\x\)" |
2043 | 236 syn match dEscSequence "\\&[^;& \t]\+;" |
17 | 237 syn match dCharacter "'[^']*'" contains=dEscSequence,dSpecialCharError |
238 syn match dCharacter "'\\''" contains=dEscSequence | |
239 syn match dCharacter "'[^\\]'" | |
7 | 240 |
2043 | 241 syn cluster dTokens add=dEscSequence,dCharacter |
242 | |
7 | 243 " Unicode characters |
244 " | |
17 | 245 syn match dUnicode "\\u\d\{4\}" |
7 | 246 |
247 " String. | |
248 " | |
2043 | 249 syn region dString start=+"+ end=+"[cwd]\=+ skip=+\\\\\|\\"+ contains=dEscSequence,@Spell |
250 syn region dRawString start=+`+ end=+`[cwd]\=+ contains=@Spell | |
251 syn region dRawString start=+r"+ end=+"[cwd]\=+ contains=@Spell | |
252 syn region dHexString start=+x"+ end=+"[cwd]\=+ contains=@Spell | |
253 syn region dDelimString start=+q"\z(.\)+ end=+\z1"+ contains=@Spell | |
5400 | 254 syn region dHereString start=+q"\z(\I\i*\)\n+ end=+^\z1"+ contains=@Spell |
2043 | 255 |
256 " Nesting delimited string contents | |
257 " | |
258 syn region dNestParenString start=+(+ end=+)+ contained transparent contains=dNestParenString,@Spell | |
259 syn region dNestBrackString start=+\[+ end=+\]+ contained transparent contains=dNestBrackString,@Spell | |
260 syn region dNestAngleString start=+<+ end=+>+ contained transparent contains=dNestAngleString,@Spell | |
261 syn region dNestCurlyString start=+{+ end=+}+ contained transparent contains=dNestCurlyString,@Spell | |
262 | |
263 " Nesting delimited strings | |
264 " | |
265 syn region dParenString matchgroup=dParenString start=+q"(+ end=+)"+ contains=dNestParenString,@Spell | |
266 syn region dBrackString matchgroup=dBrackString start=+q"\[+ end=+\]"+ contains=dNestBrackString,@Spell | |
267 syn region dAngleString matchgroup=dAngleString start=+q"<+ end=+>"+ contains=dNestAngleString,@Spell | |
268 syn region dCurlyString matchgroup=dCurlyString start=+q"{+ end=+}"+ contains=dNestCurlyString,@Spell | |
269 | |
270 hi link dParenString dNestString | |
271 hi link dBrackString dNestString | |
272 hi link dAngleString dNestString | |
273 hi link dCurlyString dNestString | |
274 | |
275 syn cluster dTokens add=dString,dRawString,dHexString,dDelimString,dNestString | |
276 | |
277 " Token strings | |
278 " | |
279 syn region dNestTokenString start=+{+ end=+}+ contained contains=dNestTokenString,@dTokens | |
280 syn region dTokenString matchgroup=dTokenStringBrack transparent start=+q{+ end=+}+ contains=dNestTokenString,@dTokens | |
281 | |
282 syn cluster dTokens add=dTokenString | |
7 | 283 |
284 " Numbers | |
285 " | |
286 syn case ignore | |
739 | 287 |
288 syn match dDec display "\<\d[0-9_]*\(u\=l\=\|l\=u\=\)\>" | |
289 | |
7 | 290 " Hex number |
17 | 291 syn match dHex display "\<0x[0-9a-f_]\+\(u\=l\=\|l\=u\=\)\>" |
739 | 292 |
293 syn match dOctal display "\<0[0-7_]\+\(u\=l\=\|l\=u\=\)\>" | |
294 " flag an octal number with wrong digits | |
295 syn match dOctalError display "\<0[0-7_]*[89][0-9_]*" | |
296 | |
297 " binary numbers | |
298 syn match dBinary display "\<0b[01_]\+\(u\=l\=\|l\=u\=\)\>" | |
7 | 299 |
300 "floating point without the dot | |
17 | 301 syn match dFloat display "\<\d[0-9_]*\(fi\=\|l\=i\)\>" |
7 | 302 "floating point number, with dot, optional exponent |
17 | 303 syn match dFloat display "\<\d[0-9_]*\.[0-9_]*\(e[-+]\=[0-9_]\+\)\=[fl]\=i\=" |
7 | 304 "floating point number, starting with a dot, optional exponent |
17 | 305 syn match dFloat display "\(\.[0-9_]\+\)\(e[-+]\=[0-9_]\+\)\=[fl]\=i\=\>" |
7 | 306 "floating point number, without dot, with exponent |
17 | 307 "syn match dFloat display "\<\d\+e[-+]\=\d\+[fl]\=\>" |
308 syn match dFloat display "\<\d[0-9_]*e[-+]\=[0-9_]\+[fl]\=\>" | |
7 | 309 |
310 "floating point without the dot | |
739 | 311 syn match dHexFloat display "\<0x[0-9a-f_]\+\(fi\=\|l\=i\)\>" |
7 | 312 "floating point number, with dot, optional exponent |
739 | 313 syn match dHexFloat display "\<0x[0-9a-f_]\+\.[0-9a-f_]*\(p[-+]\=[0-9_]\+\)\=[fl]\=i\=" |
7 | 314 "floating point number, without dot, with exponent |
739 | 315 syn match dHexFloat display "\<0x[0-9a-f_]\+p[-+]\=[0-9_]\+[fl]\=i\=\>" |
7 | 316 |
2043 | 317 syn cluster dTokens add=dDec,dHex,dOctal,dOctalError,dBinary,dFloat,dHexFloat |
318 | |
7 | 319 syn case match |
320 | |
321 " Pragma (preprocessor) support | |
322 " TODO: Highlight following Integer and optional Filespec. | |
323 syn region dPragma start="#\s*\(line\>\)" skip="\\$" end="$" | |
324 | |
3281 | 325 " Block |
326 " | |
327 syn region dBlock start="{" end="}" transparent fold | |
328 | |
7 | 329 |
330 " The default highlighting. | |
331 " | |
2581 | 332 hi def link dBinary Number |
333 hi def link dDec Number | |
334 hi def link dHex Number | |
335 hi def link dOctal Number | |
336 hi def link dFloat Float | |
337 hi def link dHexFloat Float | |
338 hi def link dDebug Debug | |
339 hi def link dBranch Conditional | |
340 hi def link dConditional Conditional | |
341 hi def link dLabel Label | |
342 hi def link dUserLabel Label | |
343 hi def link dRepeat Repeat | |
344 hi def link dExceptions Exception | |
345 hi def link dAssert Statement | |
346 hi def link dStatement Statement | |
347 hi def link dScopeDecl dStorageClass | |
348 hi def link dStorageClass StorageClass | |
349 hi def link dBoolean Boolean | |
350 hi def link dUnicode Special | |
351 hi def link dTokenStringBrack String | |
352 hi def link dHereString String | |
353 hi def link dNestString String | |
354 hi def link dDelimString String | |
355 hi def link dRawString String | |
356 hi def link dString String | |
357 hi def link dHexString String | |
358 hi def link dCharacter Character | |
359 hi def link dEscSequence SpecialChar | |
360 hi def link dSpecialCharError Error | |
361 hi def link dOctalError Error | |
362 hi def link dOperator Operator | |
363 hi def link dOpOverload Identifier | |
364 hi def link dConstant Constant | |
365 hi def link dTypedef Typedef | |
366 hi def link dEnum Structure | |
367 hi def link dStructure Structure | |
368 hi def link dTodo Todo | |
369 hi def link dType Type | |
370 hi def link dLineComment Comment | |
371 hi def link dBlockComment Comment | |
372 hi def link dNestedComment Comment | |
5400 | 373 hi def link dCommentError Error |
374 hi def link dNestedCommentError Error | |
375 hi def link dCommentStartError Error | |
2581 | 376 hi def link dExternal Include |
377 hi def link dAnnotation PreProc | |
378 hi def link dSharpBang PreProc | |
379 hi def link dAttribute StorageClass | |
380 hi def link dIdentifier Identifier | |
3281 | 381 hi def link dVersion dStatement |
2581 | 382 hi def link dVersionIdentifier Identifier |
3281 | 383 hi def link dScopeIdentifier Identifier |
384 hi def link dTraitsIdentifier Identifier | |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
385 hi def link dPragma PreProc |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
386 hi def link dPragmaIdentifier Identifier |
3281 | 387 hi def link dExtern dExternal |
388 hi def link dExternIdentifier Identifier | |
2043 | 389 |
2581 | 390 " Marks contents of the asm statment body as special |
391 | |
392 syn match dAsmStatement "\<asm\>" | |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
393 syn region dAsmBody start="asm[\n]*\s*{"hs=e+1 end="}"he=e-1 contains=dAsmStatement,dAsmOpCode,@dComment,DUserLabel |
2581 | 394 |
395 hi def link dAsmBody dUnicode | |
396 hi def link dAsmStatement dStatement | |
397 hi def link dAsmOpCode Identifier | |
398 | |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
399 syn keyword dAsmOpCode contained aaa aad aam aas |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
400 syn keyword dAsmOpCode contained add addpd addps addsd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
401 syn keyword dAsmOpCode contained and andnpd andnps andpd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
402 syn keyword dAsmOpCode contained arpl bound bsf bsr |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
403 syn keyword dAsmOpCode contained bt btc btr bts |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
404 syn keyword dAsmOpCode contained call bswap andps addss |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
405 syn keyword dAsmOpCode contained cbw cdq clc cld |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
406 syn keyword dAsmOpCode contained cli clts cmc cmova |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
407 syn keyword dAsmOpCode contained cmovb cmovbe cmovc cmove |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
408 syn keyword dAsmOpCode contained cmovge cmovl cmovle cmovna |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
409 syn keyword dAsmOpCode contained cmovnae cmovg cmovae clflush |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
410 syn keyword dAsmOpCode contained cmovnb cmovnbe cmovnc cmovne |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
411 syn keyword dAsmOpCode contained cmovnge cmovnl cmovnle cmovno |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
412 syn keyword dAsmOpCode contained cmovns cmovnz cmovo cmovp |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
413 syn keyword dAsmOpCode contained cmovpo cmovs cmovz cmp |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
414 syn keyword dAsmOpCode contained cmppd cmovpe cmovnp cmovng |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
415 syn keyword dAsmOpCode contained cmpps cmps cmpsb cmpsd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
416 syn keyword dAsmOpCode contained cmpsw cmpxch8b cmpxchg comisd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
417 syn keyword dAsmOpCode contained cpuid cvtdq2pd cvtdq2ps cvtpd2dq |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
418 syn keyword dAsmOpCode contained cvtpd2ps cvtpi2pd cvtpi2ps cvtps2dq |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
419 syn keyword dAsmOpCode contained cvtps2pd cvtpd2pi comiss cmpss |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
420 syn keyword dAsmOpCode contained cvtps2pi cvtsd2si cvtsd2ss cvtsi2sd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
421 syn keyword dAsmOpCode contained cvtss2sd cvtss2si cvttpd2dq cvttpd2pi |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
422 syn keyword dAsmOpCode contained cvttps2pi cvttsd2si cvttss2si cwd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
423 syn keyword dAsmOpCode contained da daa das db |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
424 syn keyword dAsmOpCode contained dd cwde cvttps2dq cvtsi2ss |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
425 syn keyword dAsmOpCode contained de dec df di |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
426 syn keyword dAsmOpCode contained divpd divps divsd divss |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
427 syn keyword dAsmOpCode contained dq ds dt dw |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
428 syn keyword dAsmOpCode contained enter f2xm1 fabs fadd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
429 syn keyword dAsmOpCode contained faddp emms dl div |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
430 syn keyword dAsmOpCode contained fbld fbstp fchs fclex |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
431 syn keyword dAsmOpCode contained fcmovbe fcmove fcmovnb fcmovnbe |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
432 syn keyword dAsmOpCode contained fcmovnu fcmovu fcom fcomi |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
433 syn keyword dAsmOpCode contained fcomp fcompp fcos fdecstp |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
434 syn keyword dAsmOpCode contained fdisi fcomip fcmovne fcmovb |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
435 syn keyword dAsmOpCode contained fdiv fdivp fdivr fdivrp |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
436 syn keyword dAsmOpCode contained ffree fiadd ficom ficomp |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
437 syn keyword dAsmOpCode contained fidivr fild fimul fincstp |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
438 syn keyword dAsmOpCode contained fist fistp fisub fisubr |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
439 syn keyword dAsmOpCode contained fld finit fidiv feni |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
440 syn keyword dAsmOpCode contained fld1 fldcw fldenv fldl2e |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
441 syn keyword dAsmOpCode contained fldlg2 fldln2 fldpi fldz |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
442 syn keyword dAsmOpCode contained fmulp fnclex fndisi fneni |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
443 syn keyword dAsmOpCode contained fnop fnsave fnstcw fnstenv |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
444 syn keyword dAsmOpCode contained fnstsw fninit fmul fldl2t |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
445 syn keyword dAsmOpCode contained fpatan fprem fprem1 fptan |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
446 syn keyword dAsmOpCode contained frstor fsave fscale fsetpm |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
447 syn keyword dAsmOpCode contained fsincos fsqrt fst fstcw |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
448 syn keyword dAsmOpCode contained fstp fstsw fsub fsubp |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
449 syn keyword dAsmOpCode contained fsubr fstenv fsin frndint |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
450 syn keyword dAsmOpCode contained fsubrp ftst fucom fucomi |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
451 syn keyword dAsmOpCode contained fucomp fucompp fwait fxam |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
452 syn keyword dAsmOpCode contained fxrstor fxsave fxtract fyl2x |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
453 syn keyword dAsmOpCode contained hlt idiv imul in |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
454 syn keyword dAsmOpCode contained inc fyl2xp1 fxch fucomip |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
455 syn keyword dAsmOpCode contained ins insb insd insw |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
456 syn keyword dAsmOpCode contained into invd invlpg iret |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
457 syn keyword dAsmOpCode contained ja jae jb jbe |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
458 syn keyword dAsmOpCode contained jcxz je jecxz jg |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
459 syn keyword dAsmOpCode contained jge jc iretd int |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
460 syn keyword dAsmOpCode contained jl jle jmp jna |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
461 syn keyword dAsmOpCode contained jnb jnbe jnc jne |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
462 syn keyword dAsmOpCode contained jnge jnl jnle jno |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
463 syn keyword dAsmOpCode contained jns jnz jo jp |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
464 syn keyword dAsmOpCode contained jpe jnp jng jnae |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
465 syn keyword dAsmOpCode contained jpo js jz lahf |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
466 syn keyword dAsmOpCode contained ldmxcsr lds lea leave |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
467 syn keyword dAsmOpCode contained lfence lfs lgdt lgs |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
468 syn keyword dAsmOpCode contained lldt lmsw lock lods |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
469 syn keyword dAsmOpCode contained lodsb lidt les lar |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
470 syn keyword dAsmOpCode contained lodsd lodsw loop loope |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
471 syn keyword dAsmOpCode contained loopnz loopz lsl lss |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
472 syn keyword dAsmOpCode contained maskmovdqu maskmovq maxpd maxps |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
473 syn keyword dAsmOpCode contained maxss mfence minpd minps |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
474 syn keyword dAsmOpCode contained minsd maxsd ltr loopne |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
475 syn keyword dAsmOpCode contained minss mov movapd movaps |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
476 syn keyword dAsmOpCode contained movdq2q movdqa movdqu movhlps |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
477 syn keyword dAsmOpCode contained movhps movlhps movlpd movlps |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
478 syn keyword dAsmOpCode contained movmskps movntdq movnti movntpd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
479 syn keyword dAsmOpCode contained movntps movmskpd movhpd movd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
480 syn keyword dAsmOpCode contained movntq movq movq2dq movs |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
481 syn keyword dAsmOpCode contained movsd movss movsw movsx |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
482 syn keyword dAsmOpCode contained movups movzx mul mulpd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
483 syn keyword dAsmOpCode contained mulsd mulss neg nop |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
484 syn keyword dAsmOpCode contained not mulps movupd movsb |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
485 syn keyword dAsmOpCode contained or orpd orps out |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
486 syn keyword dAsmOpCode contained outsb outsd outsw packssdw |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
487 syn keyword dAsmOpCode contained packuswb paddb paddd paddq |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
488 syn keyword dAsmOpCode contained paddsw paddusb paddusw paddw |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
489 syn keyword dAsmOpCode contained pand paddsb packsswb outs |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
490 syn keyword dAsmOpCode contained pandn pavgb pavgw pcmpeqb |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
491 syn keyword dAsmOpCode contained pcmpeqw pcmpgtb pcmpgtd pcmpgtw |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
492 syn keyword dAsmOpCode contained pinsrw pmaddwd pmaxsw pmaxub |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
493 syn keyword dAsmOpCode contained pminub pmovmskb pmulhuw pmulhw |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
494 syn keyword dAsmOpCode contained pmullw pminsw pextrw pcmpeqd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
495 syn keyword dAsmOpCode contained pmuludq pop popa popad |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
496 syn keyword dAsmOpCode contained popfd por prefetchnta prefetcht0 |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
497 syn keyword dAsmOpCode contained prefetcht2 psadbw pshufd pshufhw |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
498 syn keyword dAsmOpCode contained pshufw pslld pslldq psllq |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
499 syn keyword dAsmOpCode contained psllw pshuflw prefetcht1 popf |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
500 syn keyword dAsmOpCode contained psrad psraw psrld psrldq |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
501 syn keyword dAsmOpCode contained psrlw psubb psubd psubq |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
502 syn keyword dAsmOpCode contained psubsw psubusb psubusw psubw |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
503 syn keyword dAsmOpCode contained punpckhdq punpckhqdq punpckhwd punpcklbw |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
504 syn keyword dAsmOpCode contained punpckldq punpckhbw psubsb psrlq |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
505 syn keyword dAsmOpCode contained punpcklqdq punpcklwd push pusha |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
506 syn keyword dAsmOpCode contained pushf pushfd pxor rcl |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
507 syn keyword dAsmOpCode contained rcpss rcr rdmsr rdpmc |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
508 syn keyword dAsmOpCode contained rep repe repne repnz |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
509 syn keyword dAsmOpCode contained repz rdtsc rcpps pushad |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
510 syn keyword dAsmOpCode contained ret retf rol ror |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
511 syn keyword dAsmOpCode contained rsqrtps rsqrtss sahf sal |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
512 syn keyword dAsmOpCode contained sbb scas scasb scasd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
513 syn keyword dAsmOpCode contained seta setae setb setbe |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
514 syn keyword dAsmOpCode contained setc scasw sar rsm |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
515 syn keyword dAsmOpCode contained sete setg setge setl |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
516 syn keyword dAsmOpCode contained setna setnae setnb setnbe |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
517 syn keyword dAsmOpCode contained setne setng setnge setnl |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
518 syn keyword dAsmOpCode contained setno setnp setns setnz |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
519 syn keyword dAsmOpCode contained seto setnle setnc setle |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
520 syn keyword dAsmOpCode contained setp setpe setpo sets |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
521 syn keyword dAsmOpCode contained sfence sgdt shl shld |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
522 syn keyword dAsmOpCode contained shrd shufpd shufps sidt |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
523 syn keyword dAsmOpCode contained smsw sqrtpd sqrtps sqrtsd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
524 syn keyword dAsmOpCode contained sqrtss sldt shr setz |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
525 syn keyword dAsmOpCode contained stc std sti stmxcsr |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
526 syn keyword dAsmOpCode contained stosb stosd stosw str |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
527 syn keyword dAsmOpCode contained subpd subps subsd subss |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
528 syn keyword dAsmOpCode contained sysexit test ucomisd ucomiss |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
529 syn keyword dAsmOpCode contained ud2 sysenter sub stos |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
530 syn keyword dAsmOpCode contained unpckhpd unpckhps unpcklpd unpcklps |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
531 syn keyword dAsmOpCode contained verw wbinvd wrmsr xadd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
532 syn keyword dAsmOpCode contained xchg xlatb xor xorpd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
533 syn keyword dAsmOpCode contained xorps pfrcpit1 pfmin movddup |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
534 syn keyword dAsmOpCode contained addsubpd addsubps fisttp haddps |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
535 syn keyword dAsmOpCode contained hsubpd hsubps lddqu monitor |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
536 syn keyword dAsmOpCode contained haddpd xlat wait verr |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
537 syn keyword dAsmOpCode contained movshdup movsldup mwait pfcmpeq |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
538 syn keyword dAsmOpCode contained pavgusb pf2id pfacc pfadd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
539 syn keyword dAsmOpCode contained pfcmpge pfcmpgt pfmax pfmul |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
540 syn keyword dAsmOpCode contained pfnacc pfpnacc pfrcp pfrcpit1 |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
541 syn keyword dAsmOpCode contained pfrsqit1 pfrsqrt pfsub pfsubr |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
542 syn keyword dAsmOpCode contained pmulhrw pswapd syscall sysret |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
543 syn keyword dAsmOpCode contained vpmuldq xgetbv cmpxchg8b cmpxchg16b |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
544 syn keyword dAsmOpCode contained pabsb pabsd pabsw palignr |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
545 syn keyword dAsmOpCode contained phaddd phaddsw phaddw phsubd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
546 syn keyword dAsmOpCode contained phsubsw phsubw pmaddubsw pmulhrsw |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
547 syn keyword dAsmOpCode contained pshufb psignb psignd psignw |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
548 syn keyword dAsmOpCode contained popfq pushfq blendpd blendps |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
549 syn keyword dAsmOpCode contained blendvpd blendvps extractps insertps |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
550 syn keyword dAsmOpCode contained movntdqa mpsadbw packusdw pblendvb |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
551 syn keyword dAsmOpCode contained pblendw pcmpeqq pextrb pextrd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
552 syn keyword dAsmOpCode contained pextrq phminposuw pinsrb pinsrd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
553 syn keyword dAsmOpCode contained pinsrq pmaxsb pmaxsd pmaxud |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
554 syn keyword dAsmOpCode contained pmaxuw pminsb pminsd pminud |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
555 syn keyword dAsmOpCode contained pminuw pmulld ptest roundpd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
556 syn keyword dAsmOpCode contained roundps roundsd roundss pmuldq |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
557 syn keyword dAsmOpCode contained pmovsxbd pmovsxdq pmovzxbq pmovzxdq |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
558 syn keyword dAsmOpCode contained pmovsxbq pmovsxwd pmovzxbq pmovzxwd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
559 syn keyword dAsmOpCode contained pmovsxbw pmovsxwq pmovzxbw pmovzxwq |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
560 syn keyword dAsmOpCode contained crc32 pcmpestri pcmpestrm pcmpgtq |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
561 syn keyword dAsmOpCode contained pcmpistri pcmpistrm popcnt pi2fd |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3281
diff
changeset
|
562 syn keyword dAsmOpCode contained adc |
2581 | 563 |
3281 | 564 let &cpo = s:cpo_save |
565 unlet s:cpo_save |