annotate runtime/syntax/asm68k.vim @ 8259:99a70c3b902f v7.4.1422

commit https://github.com/vim/vim/commit/46c85439c966d7ed39fb3d711d4d6c61ac964647 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 26 11:17:46 2016 +0100 patch 7.4.1422 Problem: Error when reading fails uses wrong errno. Keeping channel open after job stops results in test failing. Solution: Move the error up. Add ch_job_killed.
author Christian Brabandt <cb@256bit.org>
date Fri, 26 Feb 2016 11:30:05 +0100
parents 3fc0f57ecb91
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Motorola 68000 Assembler
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Steve Wall
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last change: 2001 May 01
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " This is incomplete. In particular, support for 68020 and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " up and 68851/68881 co-processors is partial or non-existant.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Feel free to contribute...
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " Partial list of register symbols
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword asm68kReg a0 a1 a2 a3 a4 a5 a6 a7 d0 d1 d2 d3 d4 d5 d6 d7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword asm68kReg pc sr ccr sp usp ssp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " MC68010
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword asm68kReg vbr sfc sfcr dfc dfcr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " MC68020
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword asm68kReg msp isp zpc cacr caar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword asm68kReg za0 za1 za2 za3 za4 za5 za6 za7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword asm68kReg zd0 zd1 zd2 zd3 zd4 zd5 zd6 zd7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 " MC68030
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword asm68kReg crp srp tc ac0 ac1 acusr tt0 tt1 mmusr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " MC68040
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword asm68kReg dtt0 dtt1 itt0 itt1 urp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " MC68851 registers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword asm68kReg cal val scc crp srp drp tc ac psr pcsr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword asm68kReg bac0 bac1 bac2 bac3 bac4 bac5 bac6 bac7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword asm68kReg bad0 bad1 bad2 bad3 bad4 bad5 bad6 bad7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " MC68881/82 registers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword asm68kReg fp0 fp1 fp2 fp3 fp4 fp5 fp6 fp7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword asm68kReg control status iaddr fpcr fpsr fpiar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 " M68000 opcodes - order is important!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match asm68kOpcode "\<abcd\(\.b\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match asm68kOpcode "\<adda\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match asm68kOpcode "\<addi\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn match asm68kOpcode "\<addq\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match asm68kOpcode "\<addx\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn match asm68kOpcode "\<add\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match asm68kOpcode "\<andi\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match asm68kOpcode "\<and\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn match asm68kOpcode "\<as[lr]\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn match asm68kOpcode "\<b[vc][cs]\(\.[bwls]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn match asm68kOpcode "\<beq\(\.[bwls]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn match asm68kOpcode "\<bg[et]\(\.[bwls]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn match asm68kOpcode "\<b[hm]i\(\.[bwls]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn match asm68kOpcode "\<bl[est]\(\.[bwls]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn match asm68kOpcode "\<bne\(\.[bwls]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn match asm68kOpcode "\<bpl\(\.[bwls]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn match asm68kOpcode "\<bchg\(\.[bl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn match asm68kOpcode "\<bclr\(\.[bl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn match asm68kOpcode "\<bfchg\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn match asm68kOpcode "\<bfclr\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn match asm68kOpcode "\<bfexts\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn match asm68kOpcode "\<bfextu\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn match asm68kOpcode "\<bfffo\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn match asm68kOpcode "\<bfins\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn match asm68kOpcode "\<bfset\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn match asm68kOpcode "\<bftst\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn match asm68kOpcode "\<bkpt\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn match asm68kOpcode "\<bra\(\.[bwls]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn match asm68kOpcode "\<bset\(\.[bl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn match asm68kOpcode "\<bsr\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn match asm68kOpcode "\<btst\(\.[bl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn match asm68kOpcode "\<callm\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn match asm68kOpcode "\<cas2\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn match asm68kOpcode "\<cas\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn match asm68kOpcode "\<chk2\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn match asm68kOpcode "\<chk\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn match asm68kOpcode "\<clr\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn match asm68kOpcode "\<cmpa\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn match asm68kOpcode "\<cmpi\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn match asm68kOpcode "\<cmpm\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn match asm68kOpcode "\<cmp2\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn match asm68kOpcode "\<cmp\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn match asm68kOpcode "\<db[cv][cs]\(\.w\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn match asm68kOpcode "\<dbeq\(\.w\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn match asm68kOpcode "\<db[ft]\(\.w\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn match asm68kOpcode "\<dbg[et]\(\.w\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn match asm68kOpcode "\<db[hm]i\(\.w\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn match asm68kOpcode "\<dbl[est]\(\.w\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn match asm68kOpcode "\<dbne\(\.w\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn match asm68kOpcode "\<dbpl\(\.w\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn match asm68kOpcode "\<dbra\(\.w\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn match asm68kOpcode "\<div[su]\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn match asm68kOpcode "\<div[su]l\(\.l\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn match asm68kOpcode "\<eori\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn match asm68kOpcode "\<eor\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 syn match asm68kOpcode "\<exg\(\.l\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn match asm68kOpcode "\<extb\(\.l\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn match asm68kOpcode "\<ext\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn match asm68kOpcode "\<illegal\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn match asm68kOpcode "\<jmp\(\.[ls]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn match asm68kOpcode "\<jsr\(\.[ls]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 syn match asm68kOpcode "\<lea\(\.l\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn match asm68kOpcode "\<link\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syn match asm68kOpcode "\<ls[lr]\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn match asm68kOpcode "\<movea\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 syn match asm68kOpcode "\<movec\(\.l\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn match asm68kOpcode "\<movem\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn match asm68kOpcode "\<movep\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syn match asm68kOpcode "\<moveq\(\.l\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 syn match asm68kOpcode "\<moves\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn match asm68kOpcode "\<move\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn match asm68kOpcode "\<mul[su]\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn match asm68kOpcode "\<nbcd\(\.b\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 syn match asm68kOpcode "\<negx\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 syn match asm68kOpcode "\<neg\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 syn match asm68kOpcode "\<nop\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syn match asm68kOpcode "\<not\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn match asm68kOpcode "\<ori\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 syn match asm68kOpcode "\<or\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 syn match asm68kOpcode "\<pack\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 syn match asm68kOpcode "\<pea\(\.l\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 syn match asm68kOpcode "\<reset\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 syn match asm68kOpcode "\<ro[lr]\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 syn match asm68kOpcode "\<rox[lr]\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 syn match asm68kOpcode "\<rt[dm]\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 syn match asm68kOpcode "\<rt[ers]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 syn match asm68kOpcode "\<sbcd\(\.b\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 syn match asm68kOpcode "\<s[cv][cs]\(\.b\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 syn match asm68kOpcode "\<seq\(\.b\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 syn match asm68kOpcode "\<s[ft]\(\.b\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 syn match asm68kOpcode "\<sg[et]\(\.b\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 syn match asm68kOpcode "\<s[hm]i\(\.b\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 syn match asm68kOpcode "\<sl[est]\(\.b\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 syn match asm68kOpcode "\<sne\(\.b\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 syn match asm68kOpcode "\<spl\(\.b\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 syn match asm68kOpcode "\<suba\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 syn match asm68kOpcode "\<subi\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 syn match asm68kOpcode "\<subq\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 syn match asm68kOpcode "\<subx\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 syn match asm68kOpcode "\<sub\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 syn match asm68kOpcode "\<swap\(\.w\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 syn match asm68kOpcode "\<tas\(\.b\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 syn match asm68kOpcode "\<tdiv[su]\(\.l\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 syn match asm68kOpcode "\<t\(rap\)\=[cv][cs]\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 syn match asm68kOpcode "\<t\(rap\)\=eq\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 syn match asm68kOpcode "\<t\(rap\)\=[ft]\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 syn match asm68kOpcode "\<t\(rap\)\=g[et]\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn match asm68kOpcode "\<t\(rap\)\=[hm]i\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 syn match asm68kOpcode "\<t\(rap\)\=l[est]\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 syn match asm68kOpcode "\<t\(rap\)\=ne\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 syn match asm68kOpcode "\<t\(rap\)\=pl\(\.[wl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 syn match asm68kOpcode "\<t\(rap\)\=v\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 syn match asm68kOpcode "\<t\(rap\)\=[cv][cs]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 syn match asm68kOpcode "\<t\(rap\)\=eq\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 syn match asm68kOpcode "\<t\(rap\)\=[ft]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 syn match asm68kOpcode "\<t\(rap\)\=g[et]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 syn match asm68kOpcode "\<t\(rap\)\=[hm]i\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 syn match asm68kOpcode "\<t\(rap\)\=l[est]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 syn match asm68kOpcode "\<t\(rap\)\=ne\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 syn match asm68kOpcode "\<t\(rap\)\=pl\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 syn match asm68kOpcode "\<trap\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 syn match asm68kOpcode "\<tst\(\.[bwl]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 syn match asm68kOpcode "\<unlk\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 syn match asm68kOpcode "\<unpk\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 " Valid labels
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 syn match asm68kLabel "^[a-z_?.][a-z0-9_?.$]*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 syn match asm68kLabel "^[a-z_?.][a-z0-9_?.$]*\s"he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 syn match asm68kLabel "^\s*[a-z_?.][a-z0-9_?.$]*:"he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 " Various number formats
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 syn match hexNumber "\$[0-9a-fA-F]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 syn match hexNumber "\<[0-9][0-9a-fA-F]*H\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 syn match octNumber "@[0-7]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 syn match octNumber "\<[0-7]\+[QO]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 syn match binNumber "%[01]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 syn match binNumber "\<[01]\+B\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 syn match decNumber "\<[0-9]\+D\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 syn match floatE "_*E_*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 syn match floatExponent "_*E_*[-+]\=[0-9]\+" contained contains=floatE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 syn match floatNumber "[-+]\=[0-9]\+_*E_*[-+]\=[0-9]\+" contains=floatExponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 syn match floatNumber "[-+]\=[0-9]\+\.[0-9]\+\(E[-+]\=[0-9]\+\)\=" contains=floatExponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 syn match floatNumber ":\([0-9a-f]\+_*\)\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 " Character string constants
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 syn match asm68kStringError "'[ -~]*'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 syn match asm68kStringError "'[ -~]*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 syn region asm68kString start="'" skip="''" end="'" oneline contains=asm68kCharError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 syn match asm68kCharError "[^ -~]" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 " Immediate data
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 syn match asm68kImmediate "#\$[0-9a-fA-F]\+" contains=hexNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 syn match asm68kImmediate "#[0-9][0-9a-fA-F]*H" contains=hexNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 syn match asm68kImmediate "#@[0-7]\+" contains=octNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 syn match asm68kImmediate "#[0-7]\+[QO]" contains=octNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 syn match asm68kImmediate "#%[01]\+" contains=binNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 syn match asm68kImmediate "#[01]\+B" contains=binNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 syn match asm68kImmediate "#[0-9]\+D\=" contains=decNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 syn match asm68kSymbol "[a-z_?.][a-z0-9_?.$]*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 syn match asm68kImmediate "#[a-z_?.][a-z0-9_?.]*" contains=asm68kSymbol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 " Special items for comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 syn keyword asm68kTodo contained TODO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 " Operators
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 syn match asm68kOperator "[-+*/]" " Must occur before Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 syn match asm68kOperator "\.SIZEOF\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 syn match asm68kOperator "\.STARTOF\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 syn match asm68kOperator "<<" " shift left
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 syn match asm68kOperator ">>" " shift right
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 syn match asm68kOperator "&" " bit-wise logical and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 syn match asm68kOperator "!" " bit-wise logical or
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 syn match asm68kOperator "!!" " exclusive or
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 syn match asm68kOperator "<>" " inequality
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 syn match asm68kOperator "=" " must be before other ops containing '='
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 syn match asm68kOperator ">="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 syn match asm68kOperator "<="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 syn match asm68kOperator "==" " operand existance - used in macro definitions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 " Condition code style operators
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 syn match asm68kOperator "<[CV][CS]>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 syn match asm68kOperator "<EQ>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 syn match asm68kOperator "<G[TE]>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 syn match asm68kOperator "<[HM]I>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 syn match asm68kOperator "<L[SET]>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 syn match asm68kOperator "<NE>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 syn match asm68kOperator "<PL>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 syn match asm68kComment ";.*" contains=asm68kTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 syn match asm68kComment "\s!.*"ms=s+1 contains=asm68kTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 syn match asm68kComment "^\s*[*!].*" contains=asm68kTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 " Include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 syn match asm68kInclude "\<INCLUDE\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 " Standard macros
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 syn match asm68kCond "\<IF\(\.[BWL]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 syn match asm68kCond "\<THEN\(\.[SL]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 syn match asm68kCond "\<ELSE\(\.[SL]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 syn match asm68kCond "\<ENDI\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 syn match asm68kCond "\<BREAK\(\.[SL]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 syn match asm68kRepeat "\<FOR\(\.[BWL]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 syn match asm68kRepeat "\<DOWNTO\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 syn match asm68kRepeat "\<TO\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 syn match asm68kRepeat "\<BY\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 syn match asm68kRepeat "\<DO\(\.[SL]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 syn match asm68kRepeat "\<ENDF\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 syn match asm68kRepeat "\<NEXT\(\.[SL]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 syn match asm68kRepeat "\<REPEAT\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 syn match asm68kRepeat "\<UNTIL\(\.[BWL]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 syn match asm68kRepeat "\<WHILE\(\.[BWL]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 syn match asm68kRepeat "\<ENDW\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 " Macro definition
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 syn match asm68kMacro "\<MACRO\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 syn match asm68kMacro "\<LOCAL\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 syn match asm68kMacro "\<MEXIT\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 syn match asm68kMacro "\<ENDM\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 syn match asm68kMacroParam "\\[0-9]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 " Conditional assembly
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 syn match asm68kPreCond "\<IFC\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 syn match asm68kPreCond "\<IFDEF\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 syn match asm68kPreCond "\<IFEQ\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 syn match asm68kPreCond "\<IFGE\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 syn match asm68kPreCond "\<IFGT\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 syn match asm68kPreCond "\<IFLE\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 syn match asm68kPreCond "\<IFLT\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 syn match asm68kPreCond "\<IFNC\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 syn match asm68kPreCond "\<IFNDEF\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 syn match asm68kPreCond "\<IFNE\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281 syn match asm68kPreCond "\<ELSEC\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 syn match asm68kPreCond "\<ENDC\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 " Loop control
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 syn match asm68kPreCond "\<REPT\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 syn match asm68kPreCond "\<IRP\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287 syn match asm68kPreCond "\<IRPC\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 syn match asm68kPreCond "\<ENDR\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 " Directives
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 syn match asm68kDirective "\<ALIGN\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 syn match asm68kDirective "\<CHIP\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293 syn match asm68kDirective "\<COMLINE\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294 syn match asm68kDirective "\<COMMON\(\.S\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 syn match asm68kDirective "\<DC\(\.[BWLSDXP]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296 syn match asm68kDirective "\<DC\.\\[0-9]\s"me=e-3 " Special use in a macro def
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 syn match asm68kDirective "\<DCB\(\.[BWLSDXP]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298 syn match asm68kDirective "\<DS\(\.[BWLSDXP]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 syn match asm68kDirective "\<END\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300 syn match asm68kDirective "\<EQU\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301 syn match asm68kDirective "\<FEQU\(\.[SDXP]\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 syn match asm68kDirective "\<FAIL\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303 syn match asm68kDirective "\<FOPT\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
304 syn match asm68kDirective "\<\(NO\)\=FORMAT\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305 syn match asm68kDirective "\<IDNT\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306 syn match asm68kDirective "\<\(NO\)\=LIST\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307 syn match asm68kDirective "\<LLEN\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308 syn match asm68kDirective "\<MASK2\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 syn match asm68kDirective "\<NAME\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310 syn match asm68kDirective "\<NOOBJ\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 syn match asm68kDirective "\<OFFSET\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
312 syn match asm68kDirective "\<OPT\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313 syn match asm68kDirective "\<ORG\(\.[SL]\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 syn match asm68kDirective "\<\(NO\)\=PAGE\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315 syn match asm68kDirective "\<PLEN\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 syn match asm68kDirective "\<REG\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 syn match asm68kDirective "\<RESTORE\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318 syn match asm68kDirective "\<SAVE\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
319 syn match asm68kDirective "\<SECT\(\.S\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320 syn match asm68kDirective "\<SECTION\(\.S\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
321 syn match asm68kDirective "\<SET\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
322 syn match asm68kDirective "\<SPC\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323 syn match asm68kDirective "\<TTL\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
324 syn match asm68kDirective "\<XCOM\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325 syn match asm68kDirective "\<XDEF\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326 syn match asm68kDirective "\<XREF\(\.S\)\=\s"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
328 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
329
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
331 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
333 if version >= 508 || !exists("did_asm68k_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335 let did_asm68k_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
338 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341 " The default methods for highlighting. Can be overridden later
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342 " Comment Constant Error Identifier PreProc Special Statement Todo Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344 " Constant Boolean Character Number String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 " Identifier Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346 " PreProc Define Include Macro PreCondit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347 " Special Debug Delimiter SpecialChar SpecialComment Tag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 " Statement Conditional Exception Keyword Label Operator Repeat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349 " Type StorageClass Structure Typedef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351 HiLink asm68kComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 HiLink asm68kTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
353
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
354 HiLink hexNumber Number " Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355 HiLink octNumber Number " Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356 HiLink binNumber Number " Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357 HiLink decNumber Number " Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
358 HiLink floatNumber Number " Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
359 HiLink floatExponent Number " Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
360 HiLink floatE SpecialChar " Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361 "HiLink floatE Number " Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363 HiLink asm68kImmediate SpecialChar " Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364 "HiLink asm68kSymbol Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
366 HiLink asm68kString String " Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367 HiLink asm68kCharError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
368 HiLink asm68kStringError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370 HiLink asm68kReg Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371 HiLink asm68kOperator Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373 HiLink asm68kInclude Include " PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
374 HiLink asm68kMacro Macro " PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
375 HiLink asm68kMacroParam Keyword " Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
376
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377 HiLink asm68kDirective Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378 HiLink asm68kPreCond Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
379
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
380
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
381 HiLink asm68kOpcode Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
382 HiLink asm68kCond Conditional " Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383 HiLink asm68kRepeat Repeat " Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
385 HiLink asm68kLabel Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
386 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
387 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
388
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
389 let b:current_syntax = "asm68k"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
390
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
391 " vim: ts=8 sw=2