annotate runtime/syntax/d.vim @ 4078:fdbded463fdc v7.3.793

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