annotate runtime/syntax/jal.vim @ 1440:93ffa40b5320 v7.1.155

updated for version 7.1-155
author vimboss
date Sat, 10 Nov 2007 21:51:15 +0000
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: JAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Version: 0.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2003 May 11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Maintainer: Mark Gross <mark@thegnar.org>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " This is a syntax definition for the JAL language.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " It is based on the Source Forge compiler source code.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " https://sourceforge.net/projects/jal/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " TODO test.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn sync lines=250
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword picTodo NOTE TODO XXX contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match picIdentifier "[a-z_$][a-z0-9_$]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match picLabel "^[A-Z_$][A-Z0-9_$]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match picLabel "^[A-Z_$][A-Z0-9_$]*:"me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match picASCII "A\='.'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match picBinary "B'[0-1]\+'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match picDecimal "D'\d\+'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match picDecimal "\d\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match picHexadecimal "0x\x\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match picHexadecimal "H'\x\+'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match picHexadecimal "[0-9]\x*h"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match picOctal "O'[0-7]\o*'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match picComment ";.*" contains=picTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn region picString start=+"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword picRegister indf tmr0 pcl status fsr port_a port_b port_c port_d port_e x84_eedata x84_eeadr pclath intcon
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword picRegister f877_tmr1l f877_tmr1h f877_t1con f877_t2con f877_ccpr1l f877_ccpr1h f877_ccp1con
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword picRegister f877_pir1 f877_pir2 f877_pie1 f877_adcon1 f877_adcon0 f877_pr2 f877_adresl f877_adresh
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword picRegister f877_eeadr f877_eedath f877_eeadrh f877_eedata f877_eecon1 f877_eecon2 f628_EECON2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword picRegister f877_rcsta f877_txsta f877_spbrg f877_txreg f877_rcreg f628_EEDATA f628_EEADR f628_EECON1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 " Register --- bits
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 " STATUS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword picRegisterPart status_c status_dc status_z status_pd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword picRegisterPart status_to status_rp0 status_rp1 status_irp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 " pins
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword picRegisterPart pin_a0 pin_a1 pin_a2 pin_a3 pin_a4 pin_a5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword picRegisterPart pin_b0 pin_b1 pin_b2 pin_b3 pin_b4 pin_b5 pin_b6 pin_b7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword picRegisterPart pin_c0 pin_c1 pin_c2 pin_c3 pin_c4 pin_c5 pin_c6 pin_c7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword picRegisterPart pin_d0 pin_d1 pin_d2 pin_d3 pin_d4 pin_d5 pin_d6 pin_d7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword picRegisterPart pin_e0 pin_e1 pin_e2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword picPortDir port_a_direction port_b_direction port_c_direction port_d_direction port_e_direction
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn match picPinDir "pin_a[012345]_direction"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn match picPinDir "pin_b[01234567]_direction"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn match picPinDir "pin_c[01234567]_direction"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn match picPinDir "pin_d[01234567]_direction"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn match picPinDir "pin_e[012]_direction"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 " INTCON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword picRegisterPart intcon_gie intcon_eeie intcon_peie intcon_t0ie intcon_inte
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword picRegisterPart intcon_rbie intcon_t0if intcon_intf intcon_rbif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 " TIMER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword picRegisterPart t1ckps1 t1ckps0 t1oscen t1sync tmr1cs tmr1on tmr1ie tmr1if
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 "cpp bits
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn keyword picRegisterPart ccp1x ccp1y
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 " adcon bits
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword picRegisterPart adcon0_go adcon0_ch0 adcon0_ch1 adcon0_ch2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 " EECON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn keyword picRegisterPart eecon1_rd eecon1_wr eecon1_wren eecon1_wrerr eecon1_eepgd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword picRegisterPart f628_eecon1_rd f628_eecon1_wr f628_eecon1_wren f628_eecon1_wrerr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 " usart
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn keyword picRegisterPart tx9 txen sync brgh tx9d
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn keyword picRegisterPart spen rx9 cren ferr oerr rx9d
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn keyword picRegisterPart TXIF RCIF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 " OpCodes...
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn keyword picOpcode addlw andlw call clrwdt goto iorlw movlw option retfie retlw return sleep sublw tris
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn keyword picOpcode xorlw addwf andwf clrf clrw comf decf decfsz incf incfsz retiw iorwf movf movwf nop
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn keyword picOpcode rlf rrf subwf swapf xorwf bcf bsf btfsc btfss skpz skpnz setz clrz skpc skpnc setc clrc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn keyword picOpcode skpdc skpndc setdc clrdc movfw tstf bank page HPAGE mullw mulwf cpfseq cpfsgt cpfslt banka bankb
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn keyword jalBoolean true false
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn keyword jalBoolean off on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn keyword jalBit high low
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn keyword jalConstant Input Output all_input all_output
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn keyword jalConditional if else then elsif end if
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn keyword jalLabel goto
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 syn keyword jalRepeat for while forever loop
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn keyword jalStatement procedure function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn keyword jalStatement return end volatile const var
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn keyword jalType bit byte
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn keyword jalModifier interrupt assembler asm put get
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 syn keyword jalStatement out in is begin at
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn keyword jalDirective pragma jump_table target target_clock target_chip name error test assert
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syn keyword jalPredefined hs xt rc lp internal 16c84 16f84 16f877 sx18 sx28 12c509a 12c508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn keyword jalPredefined 12ce674 16f628 18f252 18f242 18f442 18f452 12f629 12f675 16f88
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 syn keyword jalPredefined 16f876 16f873 sx_12 sx18 sx28 pic_12 pic_14 pic_16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn keyword jalDirective chip osc clock fuses cpu watchdog powerup protection
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 syn keyword jalFunction bank_0 bank_1 bank_2 bank_3 bank_4 bank_5 bank_6 bank_7 trisa trisb trisc trisd trise
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn keyword jalFunction _trisa_flush _trisb_flush _trisc_flush _trisd_flush _trise_flush
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn keyword jalPIC local idle_loop
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 syn region jalAsm matchgroup=jalAsmKey start="\<assembler\>" end="\<end assembler\>" contains=jalComment,jalPreProc,jalLabel,picIdentifier, picLabel,picASCII,picDecimal,picHexadecimal,picOctal,picComment,picString,picRegister,picRigisterPart,picOpcode,picDirective,jalPIC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 syn region jalAsm matchgroup=jalAsmKey start="\<asm\>" end=/$/ contains=jalComment,jalPreProc,jalLabel,picIdentifier, picLabel,picASCII,picDecimal,picHexadecimal,picOctal,picComment,picString,picRegister,picRigisterPart,picOpcode,picDirective,jalPIC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn region jalPsudoVars matchgroup=jalPsudoVarsKey start="\<'put\>" end="/<is/>" contains=jalComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 syn match jalStringEscape contained "#[12][0-9]\=[0-9]\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 syn match jalIdentifier "\<[a-zA-Z_][a-zA-Z0-9_]*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 syn match jalSymbolOperator "[+\-/*=]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 syn match jalSymbolOperator "!"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 syn match jalSymbolOperator "<"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 syn match jalSymbolOperator ">"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 syn match jalSymbolOperator "<="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 syn match jalSymbolOperator ">="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 syn match jalSymbolOperator "!="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 syn match jalSymbolOperator "=="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 syn match jalSymbolOperator "<<"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 syn match jalSymbolOperator ">>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 syn match jalSymbolOperator "|"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 syn match jalSymbolOperator "&"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 syn match jalSymbolOperator "%"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 syn match jalSymbolOperator "?"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 syn match jalSymbolOperator "[()]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 syn match jalSymbolOperator "[\^.]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 syn match jalLabel "[\^]*:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 syn match jalNumber "-\=\<\d[0-9_]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 syn match jalHexNumber "0x[0-9A-Fa-f_]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 syn match jalBinNumber "0b[01_]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 " String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 "wrong strings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 syn region jalStringError matchgroup=jalStringError start=+"+ end=+"+ end=+$+ contains=jalStringEscape
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 "right strings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 syn region jalString matchgroup=jalString start=+'+ end=+'+ oneline contains=jalStringEscape
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 " To see the start and end of strings:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 syn region jalString matchgroup=jalString start=+"+ end=+"+ oneline contains=jalStringEscapeGPC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 syn keyword jalTodo contained TODO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 syn region jalComment start=/-- / end=/$/ oneline contains=jalTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 syn region jalComment start=/--\t/ end=/$/ oneline contains=jalTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 syn match jalComment /--\_$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 syn region jalPreProc start="include" end=/$/ contains=JalComment,jalToDo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 if exists("jal_no_tabs")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 syn match jalShowTab "\t"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 " 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
176 if version >= 508 || !exists("did_jal_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 let did_jal_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 HiLink jalAcces jalStatement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 HiLink jalBoolean Boolean
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 HiLink jalBit Boolean
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 HiLink jalComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 HiLink jalConditional Conditional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 HiLink jalConstant Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 HiLink jalDelimiter Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 HiLink jalDirective PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 HiLink jalException Exception
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 HiLink jalFloat Float
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 HiLink jalFunction Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 HiLink jalPsudoVarsKey Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 HiLink jalLabel Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 HiLink jalMatrixDelimiter Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 HiLink jalModifier Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 HiLink jalNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 HiLink jalBinNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 HiLink jalHexNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 HiLink jalOperator Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 HiLink jalPredefined Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 HiLink jalPreProc PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 HiLink jalRepeat Repeat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 HiLink jalStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 HiLink jalString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 HiLink jalStringEscape Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 HiLink jalStringEscapeGPC Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 HiLink jalStringError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 HiLink jalStruct jalStatement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 HiLink jalSymbolOperator jalOperator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 HiLink jalTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 HiLink jalType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 HiLink jalUnclassified Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 HiLink jalAsm Assembler
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 HiLink jalError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 HiLink jalAsmKey Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 HiLink jalPIC Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 HiLink jalShowTab Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 HiLink picTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 HiLink picComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 HiLink picDirective Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 HiLink picLabel Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 HiLink picString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 HiLink picOpcode Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 HiLink picRegister Structure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 HiLink picRegisterPart Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 HiLink picPinDir SPecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 HiLink picPortDir SPecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 HiLink picASCII String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 HiLink picBinary Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 HiLink picDecimal Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 HiLink picHexadecimal Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 HiLink picOctal Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 HiLink picIdentifier Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 let b:current_syntax = "jal"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 " vim: ts=8 sw=2