annotate runtime/syntax/vmasm.vim @ 34:e170173ecb68 current-release

before ack base protocol.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 26 Nov 2008 15:02:10 +0900
parents 76efa0be13f1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
1 " Vim syntax file
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
2 " Language: (VAX) Macro Assembly
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
3 " Maintainer: Tom Uijldert <tom.uijldert [at] cmg.nl>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
4 " Last change: 2004 May 16
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
5 "
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
6 " This is incomplete. Feel free to contribute...
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
7 "
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
8
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
9 " For version 5.x: Clear all syntax items
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
10 " For version 6.x: Quit when a syntax file was already loaded
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
11 if version < 600
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
12 syntax clear
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
13 elseif exists("b:current_syntax")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
14 finish
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
15 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
16
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
17 syn case ignore
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
18
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
19 " Partial list of register symbols
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
20 syn keyword vmasmReg r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
21 syn keyword vmasmReg ap fp sp pc iv dv
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
22
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
23 " All matches - order is important!
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
24 syn keyword vmasmOpcode adawi adwc ashl ashq bitb bitw bitl decb decw decl
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
25 syn keyword vmasmOpcode ediv emul incb incw incl mcomb mcomw mcoml
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
26 syn keyword vmasmOpcode movzbw movzbl movzwl popl pushl rotl sbwc
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
27 syn keyword vmasmOpcode cmpv cmpzv cmpc3 cmpc5 locc matchc movc3 movc5
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
28 syn keyword vmasmOpcode movtc movtuc scanc skpc spanc crc extv extzv
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
29 syn keyword vmasmOpcode ffc ffs insv aobleq aoblss bbc bbs bbcci bbssi
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
30 syn keyword vmasmOpcode blbc blbs brb brw bsbb bsbw caseb casew casel
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
31 syn keyword vmasmOpcode jmp jsb rsb sobgeq sobgtr callg calls ret
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
32 syn keyword vmasmOpcode bicpsw bispsw bpt halt index movpsl nop popr pushr xfc
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
33 syn keyword vmasmOpcode insqhi insqti insque remqhi remqti remque
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
34 syn keyword vmasmOpcode addp4 addp6 ashp cmpp3 cmpp4 cvtpl cvtlp cvtps cvtpt
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
35 syn keyword vmasmOpcode cvtsp cvttp divp movp mulp subp4 subp6 editpc
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
36 syn keyword vmasmOpcode prober probew rei ldpctx svpctx mfpr mtpr bugw bugl
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
37 syn keyword vmasmOpcode vldl vldq vgathl vgathq vstl vstq vscatl vscatq
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
38 syn keyword vmasmOpcode vvcvt iota mfvp mtvp vsync
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
39 syn keyword vmasmOpcode beql[u] bgtr[u] blss[u]
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
40 syn match vmasmOpcode "\<add[bwlfdgh][23]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
41 syn match vmasmOpcode "\<bi[cs][bwl][23]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
42 syn match vmasmOpcode "\<clr[bwlqofdgh]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
43 syn match vmasmOpcode "\<cmp[bwlfdgh]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
44 syn match vmasmOpcode "\<cvt[bwlfdgh][bwlfdgh]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
45 syn match vmasmOpcode "\<cvtr[fdgh]l\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
46 syn match vmasmOpcode "\<div[bwlfdgh][23]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
47 syn match vmasmOpcode "\<emod[fdgh]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
48 syn match vmasmOpcode "\<mneg[bwlfdgh]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
49 syn match vmasmOpcode "\<mov[bwlqofdgh]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
50 syn match vmasmOpcode "\<mul[bwlfdgh][23]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
51 syn match vmasmOpcode "\<poly[fdgh]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
52 syn match vmasmOpcode "\<sub[bwlfdgh][23]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
53 syn match vmasmOpcode "\<tst[bwlfdgh]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
54 syn match vmasmOpcode "\<xor[bwl][23]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
55 syn match vmasmOpcode "\<mova[bwlfqdgho]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
56 syn match vmasmOpcode "\<push[bwlfqdgho]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
57 syn match vmasmOpcode "\<acb[bwlfgdh]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
58 syn match vmasmOpcode "\<b[lng]equ\=\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
59 syn match vmasmOpcode "\<b[cv][cs]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
60 syn match vmasmOpcode "\<bb[cs][cs]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
61 syn match vmasmOpcode "\<v[vs]add[lfdg]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
62 syn match vmasmOpcode "\<v[vs]cmp[lfdg]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
63 syn match vmasmOpcode "\<v[vs]div[fdg]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
64 syn match vmasmOpcode "\<v[vs]mul[lfdg]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
65 syn match vmasmOpcode "\<v[vs]sub[lfdg]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
66 syn match vmasmOpcode "\<v[vs]bi[cs]l\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
67 syn match vmasmOpcode "\<v[vs]xorl\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
68 syn match vmasmOpcode "\<v[vs]merge\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
69 syn match vmasmOpcode "\<v[vs]s[rl]ll\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
70
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
71 " Various number formats
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
72 syn match vmasmdecNumber "[+-]\=[0-9]\+\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
73 syn match vmasmdecNumber "^d[0-9]\+\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
74 syn match vmasmhexNumber "^x[0-9a-f]\+\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
75 syn match vmasmoctNumber "^o[0-7]\+\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
76 syn match vmasmbinNumber "^b[01]\+\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
77 syn match vmasmfloatNumber "[-+]\=[0-9]\+E[-+]\=[0-9]\+"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
78 syn match vmasmfloatNumber "[-+]\=[0-9]\+\.[0-9]*\(E[-+]\=[0-9]\+\)\="
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
79
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
80 " Valid labels
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
81 syn match vmasmLabel "^[a-z_$.][a-z0-9_$.]\{,30}::\="
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
82 syn match vmasmLabel "\<[0-9]\{1,5}\$:\=" " Local label
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
83
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
84 " Character string constants
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
85 " Too complex really. Could be "<...>" but those could also be
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
86 " expressions. Don't know how to handle chosen delimiters
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
87 " ("^<sep>...<sep>")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
88 " syn region vmasmString start="<" end=">" oneline
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
89
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
90 " Operators
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
91 syn match vmasmOperator "[-+*/@&!\\]"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
92 syn match vmasmOperator "="
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
93 syn match vmasmOperator "==" " Global assignment
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
94 syn match vmasmOperator "%length(.*)"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
95 syn match vmasmOperator "%locate(.*)"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
96 syn match vmasmOperator "%extract(.*)"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
97 syn match vmasmOperator "^[amfc]"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
98 syn match vmasmOperator "[bwlg]^"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
99
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
100 syn match vmasmOperator "\<\(not_\)\=equal\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
101 syn match vmasmOperator "\<less_equal\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
102 syn match vmasmOperator "\<greater\(_equal\)\=\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
103 syn match vmasmOperator "\<less_than\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
104 syn match vmasmOperator "\<\(not_\)\=defined\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
105 syn match vmasmOperator "\<\(not_\)\=blank\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
106 syn match vmasmOperator "\<identical\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
107 syn match vmasmOperator "\<different\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
108 syn match vmasmOperator "\<eq\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
109 syn match vmasmOperator "\<[gl]t\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
110 syn match vmasmOperator "\<n\=df\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
111 syn match vmasmOperator "\<n\=b\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
112 syn match vmasmOperator "\<idn\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
113 syn match vmasmOperator "\<[nlg]e\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
114 syn match vmasmOperator "\<dif\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
115
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
116 " Special items for comments
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
117 syn keyword vmasmTodo contained todo
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
118
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
119 " Comments
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
120 syn match vmasmComment ";.*" contains=vmasmTodo
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
121
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
122 " Include
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
123 syn match vmasmInclude "\.library\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
124
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
125 " Macro definition
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
126 syn match vmasmMacro "\.macro\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
127 syn match vmasmMacro "\.mexit\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
128 syn match vmasmMacro "\.endm\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
129 syn match vmasmMacro "\.mcall\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
130 syn match vmasmMacro "\.mdelete\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
131
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
132 " Conditional assembly
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
133 syn match vmasmPreCond "\.iff\=\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
134 syn match vmasmPreCond "\.if_false\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
135 syn match vmasmPreCond "\.iftf\=\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
136 syn match vmasmPreCond "\.if_true\(_false\)\=\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
137 syn match vmasmPreCond "\.iif\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
138
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
139 " Loop control
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
140 syn match vmasmRepeat "\.irpc\=\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
141 syn match vmasmRepeat "\.repeat\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
142 syn match vmasmRepeat "\.rept\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
143 syn match vmasmRepeat "\.endr\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
144
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
145 " Directives
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
146 syn match vmasmDirective "\.address\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
147 syn match vmasmDirective "\.align\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
148 syn match vmasmDirective "\.asci[cdiz]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
149 syn match vmasmDirective "\.blk[abdfghloqw]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
150 syn match vmasmDirective "\.\(signed_\)\=byte\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
151 syn match vmasmDirective "\.\(no\)\=cross\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
152 syn match vmasmDirective "\.debug\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
153 syn match vmasmDirective "\.default displacement\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
154 syn match vmasmDirective "\.[dfgh]_floating\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
155 syn match vmasmDirective "\.disable\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
156 syn match vmasmDirective "\.double\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
157 syn match vmasmDirective "\.dsabl\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
158 syn match vmasmDirective "\.enable\=\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
159 syn match vmasmDirective "\.endc\=\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
160 syn match vmasmDirective "\.entry\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
161 syn match vmasmDirective "\.error\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
162 syn match vmasmDirective "\.even\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
163 syn match vmasmDirective "\.external\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
164 syn match vmasmDirective "\.extrn\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
165 syn match vmasmDirective "\.float\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
166 syn match vmasmDirective "\.globa\=l\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
167 syn match vmasmDirective "\.ident\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
168 syn match vmasmDirective "\.link\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
169 syn match vmasmDirective "\.list\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
170 syn match vmasmDirective "\.long\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
171 syn match vmasmDirective "\.mask\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
172 syn match vmasmDirective "\.narg\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
173 syn match vmasmDirective "\.nchr\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
174 syn match vmasmDirective "\.nlist\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
175 syn match vmasmDirective "\.ntype\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
176 syn match vmasmDirective "\.octa\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
177 syn match vmasmDirective "\.odd\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
178 syn match vmasmDirective "\.opdef\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
179 syn match vmasmDirective "\.packed\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
180 syn match vmasmDirective "\.page\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
181 syn match vmasmDirective "\.print\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
182 syn match vmasmDirective "\.psect\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
183 syn match vmasmDirective "\.quad\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
184 syn match vmasmDirective "\.ref[1248]\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
185 syn match vmasmDirective "\.ref16\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
186 syn match vmasmDirective "\.restore\(_psect\)\=\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
187 syn match vmasmDirective "\.save\(_psect\)\=\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
188 syn match vmasmDirective "\.sbttl\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
189 syn match vmasmDirective "\.\(no\)\=show\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
190 syn match vmasmDirective "\.\(sub\)\=title\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
191 syn match vmasmDirective "\.transfer\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
192 syn match vmasmDirective "\.warn\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
193 syn match vmasmDirective "\.weak\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
194 syn match vmasmDirective "\.\(signed_\)\=word\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
195
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
196 syn case match
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
197
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
198 " Define the default highlighting.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
199 " For version 5.7 and earlier: only when not done already
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
200 " For version 5.8 and later: only when an item doesn't have highlighting yet
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
201 if version >= 508 || !exists("did_macro_syntax_inits")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
202 if version < 508
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
203 let did_macro_syntax_inits = 1
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
204 command -nargs=+ HiLink hi link <args>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
205 else
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
206 command -nargs=+ HiLink hi def link <args>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
207 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
208
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
209 " The default methods for highlighting. Can be overridden later
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
210 " Comment Constant Error Identifier PreProc Special Statement Todo Type
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
211 "
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
212 " Constant Boolean Character Number String
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
213 " Identifier Function
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
214 " PreProc Define Include Macro PreCondit
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
215 " Special Debug Delimiter SpecialChar SpecialComment Tag
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
216 " Statement Conditional Exception Keyword Label Operator Repeat
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
217 " Type StorageClass Structure Typedef
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
218
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
219 HiLink vmasmComment Comment
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
220 HiLink vmasmTodo Todo
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
221
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
222 HiLink vmasmhexNumber Number " Constant
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
223 HiLink vmasmoctNumber Number " Constant
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
224 HiLink vmasmbinNumber Number " Constant
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
225 HiLink vmasmdecNumber Number " Constant
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
226 HiLink vmasmfloatNumber Number " Constant
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
227
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
228 " HiLink vmasmString String " Constant
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
229
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
230 HiLink vmasmReg Identifier
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
231 HiLink vmasmOperator Identifier
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
232
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
233 HiLink vmasmInclude Include " PreProc
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
234 HiLink vmasmMacro Macro " PreProc
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
235 " HiLink vmasmMacroParam Keyword " Statement
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
236
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
237 HiLink vmasmDirective Special
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
238 HiLink vmasmPreCond Special
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
239
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
240
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
241 HiLink vmasmOpcode Statement
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
242 HiLink vmasmCond Conditional " Statement
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
243 HiLink vmasmRepeat Repeat " Statement
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
244
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
245 HiLink vmasmLabel Type
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
246 delcommand HiLink
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
247 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
248
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
249 let b:current_syntax = "vmasm"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
250
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
251 " vim: ts=8 sw=2