annotate runtime/syntax/btm.vim @ 49:000769ce6c9d default tip

Added tag v7-3-618 for changeset 67300faee616
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 01 Aug 2012 18:08:37 +0900
parents 76efa0be13f1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
1 " Vim syntax file
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
2 " Language: 4Dos batch file
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
3 " Maintainer: John Leo Spetz <jls11@po.cwru.edu>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
4 " Last Change: 2001 May 09
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
5
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
6 "//Issues to resolve:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
7 "//- Boolean operators surrounded by period are recognized but the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
8 "// periods are not highlighted. The only way to do that would
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
9 "// be separate synmatches for each possibility otherwise a more
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
10 "// general \.\i\+\. will highlight anything delimited by dots.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
11 "//- After unary operators like "defined" can assume token type.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
12 "// Should there be more of these?
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
13
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
14 " For version 5.x: Clear all syntax items
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
15 " For version 6.x: Quit when a syntax file was already loaded
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
16 if version < 600
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
17 syntax clear
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
18 elseif exists("b:current_syntax")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
19 finish
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
20 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
21
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
22 syn case ignore
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
23
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
24 syn keyword btmStatement call off
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
25 syn keyword btmConditional if iff endiff then else elseiff not errorlevel
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
26 syn keyword btmConditional gt lt eq ne ge le
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
27 syn match btmConditional transparent "\.\i\+\." contains=btmDotBoolOp
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
28 syn keyword btmDotBoolOp contained and or xor
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
29 syn match btmConditional "=="
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
30 syn match btmConditional "!="
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
31 syn keyword btmConditional defined errorlevel exist isalias
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
32 syn keyword btmConditional isdir direxist isinternal islabel
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
33 syn keyword btmRepeat for in do enddo
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
34
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
35 syn keyword btmTodo contained TODO
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
36
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
37 " String
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
38 syn cluster btmVars contains=btmVariable,btmArgument,btmBIFMatch
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
39 syn region btmString start=+"+ end=+"+ contains=@btmVars
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
40 syn match btmNumber "\<\d\+\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
41
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
42 "syn match btmIdentifier "\<\h\w*\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
43
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
44 " If you don't like tabs
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
45 "syn match btmShowTab "\t"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
46 "syn match btmShowTabc "\t"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
47 "syn match btmComment "^\ *rem.*$" contains=btmTodo,btmShowTabc
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
48
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
49 " Some people use this as a comment line
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
50 " In fact this is a Label
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
51 "syn match btmComment "^\ *:\ \+.*$" contains=btmTodo
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
52
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
53 syn match btmComment "^\ *rem.*$" contains=btmTodo
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
54 syn match btmComment "^\ *::.*$" contains=btmTodo
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
55
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
56 syn match btmLabelMark "^\ *:[0-9a-zA-Z_\-]\+\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
57 syn match btmLabelMark "goto [0-9a-zA-Z_\-]\+\>"lc=5
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
58 syn match btmLabelMark "gosub [0-9a-zA-Z_\-]\+\>"lc=6
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
59
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
60 " syn match btmCmdDivider ">[>&][>&]\="
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
61 syn match btmCmdDivider ">[>&]*"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
62 syn match btmCmdDivider ">>&>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
63 syn match btmCmdDivider "|&\="
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
64 syn match btmCmdDivider "%+"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
65 syn match btmCmdDivider "\^"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
66
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
67 syn region btmEcho start="echo" skip="echo" matchgroup=btmCmdDivider end="%+" end="$" end="|&\=" end="\^" end=">[>&]*" contains=@btmEchos oneline
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
68 syn cluster btmEchos contains=@btmVars,btmEchoCommand,btmEchoParam
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
69 syn keyword btmEchoCommand contained echo echoerr echos echoserr
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
70 syn keyword btmEchoParam contained on off
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
71
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
72 " this is also a valid Label. I don't use it.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
73 "syn match btmLabelMark "^\ *:\ \+[0-9a-zA-Z_\-]\+\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
74
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
75 " //Environment variable can be expanded using notation %var in 4DOS
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
76 syn match btmVariable "%[0-9a-z_\-]\+" contains=@btmSpecialVars
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
77 " //Environment variable can be expanded using notation %var%
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
78 syn match btmVariable "%[0-9a-z_\-]*%" contains=@btmSpecialVars
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
79 " //The following are special variable in 4DOS
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
80 syn match btmVariable "%[=#]" contains=@btmSpecialVars
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
81 syn match btmVariable "%??\=" contains=@btmSpecialVars
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
82 " //Environment variable can be expanded using notation %[var] in 4DOS
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
83 syn match btmVariable "%\[[0-9a-z_\-]*\]"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
84 " //After some keywords next word should be an environment variable
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
85 syn match btmVariable "defined\s\i\+"lc=8
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
86 syn match btmVariable "set\s\i\+"lc=4
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
87 " //Parameters to batchfiles take the format %<digit>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
88 syn match btmArgument "%\d\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
89 " //4DOS allows format %<digit>& meaning batchfile parameters digit and up
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
90 syn match btmArgument "%\d\>&"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
91 " //Variable used by FOR loops sometimes use %%<letter> in batchfiles
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
92 syn match btmArgument "%%\a\>"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
93
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
94 " //Show 4DOS built-in functions specially
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
95 syn match btmBIFMatch "%@\w\+\["he=e-1 contains=btmBuiltInFunc
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
96 syn keyword btmBuiltInFunc contained alias ascii attrib cdrom
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
97 syn keyword btmBuiltInFunc contained char clip comma convert
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
98 syn keyword btmBuiltInFunc contained date day dec descript
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
99 syn keyword btmBuiltInFunc contained device diskfree disktotal
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
100 syn keyword btmBuiltInFunc contained diskused dosmem dow dowi
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
101 syn keyword btmBuiltInFunc contained doy ems eval exec execstr
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
102 syn keyword btmBuiltInFunc contained expand ext extended
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
103 syn keyword btmBuiltInFunc contained fileage fileclose filedate
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
104 syn keyword btmBuiltInFunc contained filename fileopen fileread
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
105 syn keyword btmBuiltInFunc contained files fileseek fileseekl
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
106 syn keyword btmBuiltInFunc contained filesize filetime filewrite
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
107 syn keyword btmBuiltInFunc contained filewriteb findclose
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
108 syn keyword btmBuiltInFunc contained findfirst findnext format
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
109 syn keyword btmBuiltInFunc contained full if inc index insert
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
110 syn keyword btmBuiltInFunc contained instr int label left len
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
111 syn keyword btmBuiltInFunc contained lfn line lines lower lpt
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
112 syn keyword btmBuiltInFunc contained makeage makedate maketime
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
113 syn keyword btmBuiltInFunc contained master month name numeric
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
114 syn keyword btmBuiltInFunc contained path random readscr ready
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
115 syn keyword btmBuiltInFunc contained remote removable repeat
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
116 syn keyword btmBuiltInFunc contained replace right search
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
117 syn keyword btmBuiltInFunc contained select sfn strip substr
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
118 syn keyword btmBuiltInFunc contained time timer trim truename
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
119 syn keyword btmBuiltInFunc contained unique upper wild word
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
120 syn keyword btmBuiltInFunc contained words xms year
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
121
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
122 syn cluster btmSpecialVars contains=btmBuiltInVar,btmSpecialVar
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
123
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
124 " //Show specialized variables specially
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
125 " syn match btmSpecialVar contained "+"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
126 syn match btmSpecialVar contained "="
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
127 syn match btmSpecialVar contained "#"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
128 syn match btmSpecialVar contained "??\="
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
129 syn keyword btmSpecialVar contained cmdline colordir comspec
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
130 syn keyword btmSpecialVar contained copycmd dircmd temp temp4dos
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
131 syn keyword btmSpecialVar contained filecompletion path prompt
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
132
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
133 " //Show 4DOS built-in variables specially specially
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
134 syn keyword btmBuiltInVar contained _4ver _alias _ansi
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
135 syn keyword btmBuiltInVar contained _apbatt _aplife _apmac _batch
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
136 syn keyword btmBuiltInVar contained _batchline _batchname _bg
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
137 syn keyword btmBuiltInVar contained _boot _ci _cmdproc _co
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
138 syn keyword btmBuiltInVar contained _codepage _column _columns
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
139 syn keyword btmBuiltInVar contained _country _cpu _cwd _cwds _cwp
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
140 syn keyword btmBuiltInVar contained _cwps _date _day _disk _dname
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
141 syn keyword btmBuiltInVar contained _dos _dosver _dow _dowi _doy
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
142 syn keyword btmBuiltInVar contained _dpmi _dv _env _fg _hlogfile
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
143 syn keyword btmBuiltInVar contained _hour _kbhit _kstack _lastdisk
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
144 syn keyword btmBuiltInVar contained _logfile _minute _monitor
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
145 syn keyword btmBuiltInVar contained _month _mouse _ndp _row _rows
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
146 syn keyword btmBuiltInVar contained _second _shell _swapping
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
147 syn keyword btmBuiltInVar contained _syserr _time _transient
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
148 syn keyword btmBuiltInVar contained _video _win _wintitle _year
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
149
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
150 " //Commands in 4DOS and/or DOS
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
151 syn match btmCommand "\s?"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
152 syn match btmCommand "^?"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
153 syn keyword btmCommand alias append assign attrib
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
154 syn keyword btmCommand backup beep break cancel case
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
155 syn keyword btmCommand cd cdd cdpath chcp chdir
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
156 syn keyword btmCommand chkdsk cls color comp copy
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
157 syn keyword btmCommand ctty date debug default defrag
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
158 syn keyword btmCommand del delay describe dir
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
159 syn keyword btmCommand dirhistory dirs diskcomp
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
160 syn keyword btmCommand diskcopy doskey dosshell
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
161 syn keyword btmCommand drawbox drawhline drawvline
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
162 "syn keyword btmCommand echo echoerr echos echoserr
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
163 syn keyword btmCommand edit edlin emm386 endlocal
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
164 syn keyword btmCommand endswitch erase eset except
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
165 syn keyword btmCommand exe2bin exit expand fastopen
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
166 syn keyword btmCommand fc fdisk ffind find format
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
167 syn keyword btmCommand free global gosub goto
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
168 syn keyword btmCommand graftabl graphics help history
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
169 syn keyword btmCommand inkey input join keyb keybd
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
170 syn keyword btmCommand keystack label lh list loadbtm
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
171 syn keyword btmCommand loadhigh lock log md mem
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
172 syn keyword btmCommand memory mirror mkdir mode more
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
173 syn keyword btmCommand move nlsfunc on option path
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
174 syn keyword btmCommand pause popd print prompt pushd
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
175 syn keyword btmCommand quit rd reboot recover ren
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
176 syn keyword btmCommand rename replace restore return
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
177 syn keyword btmCommand rmdir scandisk screen scrput
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
178 syn keyword btmCommand select set setdos setlocal
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
179 syn keyword btmCommand setver share shift sort subst
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
180 syn keyword btmCommand swapping switch sys tee text
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
181 syn keyword btmCommand time timer touch tree truename
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
182 syn keyword btmCommand type unalias undelete unformat
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
183 syn keyword btmCommand unlock unset ver verify vol
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
184 syn keyword btmCommand vscrput y
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
185
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
186 " Define the default highlighting.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
187 " For version 5.7 and earlier: only when not done already
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
188 " For version 5.8 and later: only when an item doesn't have highlighting yet
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
189 if version >= 508 || !exists("did_btm_syntax_inits")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
190 if version < 508
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
191 let did_btm_syntax_inits = 1
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
192 command -nargs=+ HiLink hi link <args>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
193 else
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
194 command -nargs=+ HiLink hi def link <args>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
195 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
196
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
197 HiLink btmLabel Special
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
198 HiLink btmLabelMark Special
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
199 HiLink btmCmdDivider Special
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
200 HiLink btmConditional btmStatement
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
201 HiLink btmDotBoolOp btmStatement
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
202 HiLink btmRepeat btmStatement
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
203 HiLink btmEchoCommand btmStatement
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
204 HiLink btmEchoParam btmStatement
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
205 HiLink btmStatement Statement
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
206 HiLink btmTodo Todo
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
207 HiLink btmString String
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
208 HiLink btmNumber Number
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
209 HiLink btmComment Comment
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
210 HiLink btmArgument Identifier
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
211 HiLink btmVariable Identifier
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
212 HiLink btmEcho String
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
213 HiLink btmBIFMatch btmStatement
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
214 HiLink btmBuiltInFunc btmStatement
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
215 HiLink btmBuiltInVar btmStatement
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
216 HiLink btmSpecialVar btmStatement
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
217 HiLink btmCommand btmStatement
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
218
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
219 "optional highlighting
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
220 "HiLink btmShowTab Error
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
221 "HiLink btmShowTabc Error
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
222 "hiLink btmIdentifier Identifier
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
223
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
224 delcommand HiLink
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
225 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
226
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
227 let b:current_syntax = "btm"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
228
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
229 " vim: ts=8