annotate runtime/syntax/jal.vim @ 31794:745772308c81 v9.0.1229

patch 9.0.1229: Cap'n Proto files are not recognized Commit: https://github.com/vim/vim/commit/040e795e8da05ff38cc896528d4dcad100f0b584 Author: Amaan Qureshi <amaanq12@gmail.com> Date: Sun Jan 22 13:10:39 2023 +0000 patch 9.0.1229: Cap'n Proto files are not recognized Problem: Cap'n Proto files are not recognized. Solution: Add a pattern and the "capnp" filetype. (Amaan Qureshi, closes #11862)
author Bram Moolenaar <Bram@vim.org>
date Sun, 22 Jan 2023 14:15:04 +0100
parents 46763b01cd9a
children
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
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
12 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
13 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn sync lines=250
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword picTodo NOTE TODO XXX contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match picIdentifier "[a-z_$][a-z0-9_$]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match picLabel "^[A-Z_$][A-Z0-9_$]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match picLabel "^[A-Z_$][A-Z0-9_$]*:"me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match picASCII "A\='.'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match picBinary "B'[0-1]\+'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match picDecimal "D'\d\+'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match picDecimal "\d\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match picHexadecimal "0x\x\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match picHexadecimal "H'\x\+'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match picHexadecimal "[0-9]\x*h"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match picOctal "O'[0-7]\o*'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match picComment ";.*" contains=picTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn region picString start=+"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 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
40 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
41 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
42 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
43 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
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " Register --- bits
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 " STATUS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword picRegisterPart status_c status_dc status_z status_pd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword picRegisterPart status_to status_rp0 status_rp1 status_irp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " pins
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 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
52 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
53 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
54 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
55 syn keyword picRegisterPart pin_e0 pin_e1 pin_e2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 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
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn match picPinDir "pin_a[012345]_direction"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn match picPinDir "pin_b[01234567]_direction"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn match picPinDir "pin_c[01234567]_direction"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn match picPinDir "pin_d[01234567]_direction"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn match picPinDir "pin_e[012]_direction"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 " INTCON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword picRegisterPart intcon_gie intcon_eeie intcon_peie intcon_t0ie intcon_inte
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword picRegisterPart intcon_rbie intcon_t0if intcon_intf intcon_rbif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 " TIMER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword picRegisterPart t1ckps1 t1ckps0 t1oscen t1sync tmr1cs tmr1on tmr1ie tmr1if
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 "cpp bits
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword picRegisterPart ccp1x ccp1y
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 " adcon bits
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn keyword picRegisterPart adcon0_go adcon0_ch0 adcon0_ch1 adcon0_ch2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 " EECON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword picRegisterPart eecon1_rd eecon1_wr eecon1_wren eecon1_wrerr eecon1_eepgd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 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
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 " usart
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword picRegisterPart tx9 txen sync brgh tx9d
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn keyword picRegisterPart spen rx9 cren ferr oerr rx9d
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn keyword picRegisterPart TXIF RCIF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 " OpCodes...
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 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
90 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
91 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
92 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
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn keyword jalBoolean true false
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn keyword jalBoolean off on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn keyword jalBit high low
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn keyword jalConstant Input Output all_input all_output
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn keyword jalConditional if else then elsif end if
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn keyword jalLabel goto
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn keyword jalRepeat for while forever loop
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn keyword jalStatement procedure function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn keyword jalStatement return end volatile const var
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 syn keyword jalType bit byte
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn keyword jalModifier interrupt assembler asm put get
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn keyword jalStatement out in is begin at
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 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
109 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
110 syn keyword jalPredefined 12ce674 16f628 18f252 18f242 18f442 18f452 12f629 12f675 16f88
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 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
112
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn keyword jalDirective chip osc clock fuses cpu watchdog powerup protection
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 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
116 syn keyword jalFunction _trisa_flush _trisb_flush _trisc_flush _trisd_flush _trise_flush
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 syn keyword jalPIC local idle_loop
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 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
121 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
122
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 syn region jalPsudoVars matchgroup=jalPsudoVarsKey start="\<'put\>" end="/<is/>" contains=jalComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syn match jalStringEscape contained "#[12][0-9]\=[0-9]\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn match jalIdentifier "\<[a-zA-Z_][a-zA-Z0-9_]*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 syn match jalSymbolOperator "[+\-/*=]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 syn match jalSymbolOperator "!"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 syn match jalSymbolOperator "<"
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 jalLabel "[\^]*:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 syn match jalNumber "-\=\<\d[0-9_]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 syn match jalHexNumber "0x[0-9A-Fa-f_]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 syn match jalBinNumber "0b[01_]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 " String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 "wrong strings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 syn region jalStringError matchgroup=jalStringError start=+"+ end=+"+ end=+$+ contains=jalStringEscape
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 "right strings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 syn region jalString matchgroup=jalString start=+'+ end=+'+ oneline contains=jalStringEscape
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 " To see the start and end of strings:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn region jalString matchgroup=jalString start=+"+ end=+"+ oneline contains=jalStringEscapeGPC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 syn keyword jalTodo contained TODO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 syn region jalComment start=/-- / end=/$/ oneline contains=jalTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 syn region jalComment start=/--\t/ end=/$/ oneline contains=jalTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 syn match jalComment /--\_$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 syn region jalPreProc start="include" end=/$/ contains=JalComment,jalToDo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 if exists("jal_no_tabs")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 syn match jalShowTab "\t"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
171 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
173 hi def link jalAcces jalStatement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
174 hi def link jalBoolean Boolean
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
175 hi def link jalBit Boolean
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
176 hi def link jalComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
177 hi def link jalConditional Conditional
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
178 hi def link jalConstant Constant
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
179 hi def link jalDelimiter Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
180 hi def link jalDirective PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
181 hi def link jalException Exception
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
182 hi def link jalFloat Float
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
183 hi def link jalFunction Function
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
184 hi def link jalPsudoVarsKey Function
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
185 hi def link jalLabel Label
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
186 hi def link jalMatrixDelimiter Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
187 hi def link jalModifier Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
188 hi def link jalNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
189 hi def link jalBinNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
190 hi def link jalHexNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
191 hi def link jalOperator Operator
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
192 hi def link jalPredefined Constant
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
193 hi def link jalPreProc PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
194 hi def link jalRepeat Repeat
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
195 hi def link jalStatement Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
196 hi def link jalString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
197 hi def link jalStringEscape Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
198 hi def link jalStringEscapeGPC Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
199 hi def link jalStringError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
200 hi def link jalStruct jalStatement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
201 hi def link jalSymbolOperator jalOperator
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
202 hi def link jalTodo Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
203 hi def link jalType Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
204 hi def link jalUnclassified Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
205 hi def link jalAsm Assembler
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
206 hi def link jalError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
207 hi def link jalAsmKey Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
208 hi def link jalPIC Statement
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
210 hi def link jalShowTab Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
212 hi def link picTodo Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
213 hi def link picComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
214 hi def link picDirective Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
215 hi def link picLabel Label
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
216 hi def link picString String
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
218 hi def link picOpcode Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
219 hi def link picRegister Structure
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
220 hi def link picRegisterPart Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
221 hi def link picPinDir SPecial
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
222 hi def link picPortDir SPecial
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
224 hi def link picASCII String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
225 hi def link picBinary Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
226 hi def link picDecimal Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
227 hi def link picHexadecimal Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
228 hi def link picOctal Number
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
230 hi def link picIdentifier Identifier
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 let b:current_syntax = "jal"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 " vim: ts=8 sw=2