Mercurial > vim
comparison runtime/syntax/eterm.vim @ 375:f14cbd913415 v7.0097
updated for version 7.0097
author | vimboss |
---|---|
date | Wed, 29 Jun 2005 22:40:58 +0000 |
parents | 3fc0f57ecb91 |
children | 4fe8e1a7758e |
comparison
equal
deleted
inserted
replaced
374:575dacb554d8 | 375:f14cbd913415 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Eterm configuration file | 2 " Language: eterm(1) configuration file |
3 " Maintainer: Nikolai Weibull <source@pcppopper.org> | 3 " Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> |
4 " URL: http://www.pcppopper.org/vim/syntax/pcp/eterm/ | 4 " Latest Revision: 2005-06-29 |
5 " Latest Revision: 2004-05-06 | 5 |
6 " arch-tag: f4c58caf-2b91-4fc4-96af-e3cad7c70e6b | 6 if exists("b:current_syntax") |
7 | |
8 if version < 600 | |
9 syntax clear | |
10 elseif exists("b:current_syntax") | |
11 finish | 7 finish |
12 endif | 8 endif |
13 | 9 |
14 " magic number | 10 let s:cpo_save = &cpo |
15 syn match etermMagic display "^<Eterm-[0-9.]\+>$" | 11 set cpo&vim |
16 | 12 |
17 " comments | 13 syn keyword etermTodo contained TODO FIXME XXX NOTE |
18 syn region etermComment matchgroup=etermComment start="^#" end="$" contains=etermTodo | 14 |
19 | 15 syn region etermComment matchgroup=etermComment start='^#' end='$' |
20 " todo | 16 \ contains=etermTodo,@Spell |
21 syn keyword etermTodo contained TODO FIXME XXX NOTE | 17 |
22 | 18 syn match etermMagic display display '^<Eterm-[0-9.]\+>$' |
23 " numbers | 19 |
24 syn match etermNumber contained display "\<\(\d\+\|0x\x\{1,2}\)\>" | 20 syn match etermNumber contained display '\<\(\d\+\|0x\x\{1,2}\)\>' |
25 | 21 |
26 " strings | 22 syn region etermString contained display oneline start=+"+ |
27 syn region etermString contained display oneline start=+"+ skip=+\\"+ end=+"+ | 23 \ skip=+\\"+ end=+"+ |
28 | 24 |
29 " booleans | 25 syn keyword etermBoolean contained on off true false yes no |
30 syn keyword etermBoolean contained on off true false yes no | 26 |
31 | 27 syn keyword etermPreProc contained appname exec get put random version |
32 " colors (not pretty, but can't figure out better way...) | 28 \ include preproc |
33 syn match etermColor contained display "\s\+#\x\{6}\>" | 29 |
34 syn keyword etermColor contained white black | 30 syn keyword etermFunctions contained copy exit kill nop paste save |
35 | 31 \ scroll search spawn |
36 " preproc | 32 |
37 syn match etermPreProc contained "%\(appname\|exec\|get\|put\|random\|version\|include\|preproc\)("he=e-1 | 33 syn cluster etermGeneral contains=etermComment,etermFunction, |
38 | 34 \ etermPreProc |
39 " functions | 35 |
40 syn match etermFunctions contained "\<\(copy\|exit\|kill\|nop\|paste\|save\|scroll\|search\|spawn\)(" | 36 syn keyword etermKeyMod contained ctrl shift lock mod1 mod2 mod3 mod4 |
41 | 37 \ mod5 alt meta anymod |
42 " and make it easy to refer to the above... | 38 syn keyword etermKeyMod contained button1 button2 button3 button4 |
43 syn cluster etermGeneral contains=etermComment,etermNumber,etermString,etermBoolean,etermColor,etermFunction,etermPreProc | 39 \ button5 |
44 | 40 |
45 " key modifiers | 41 syn keyword etermColorOptions contained video nextgroup=etermVideoOptions |
46 syn keyword etermKeyMod contained ctrl shift lock mod1 mod2 mod3 mod4 mod5 alt meta anymod | 42 \ skipwhite |
47 syn keyword etermKeyMod contained button1 button2 button3 button4 button5 | 43 |
48 | 44 syn keyword etermVideoType contained normal reverse |
49 " color context | 45 |
50 syn region etermColorOptions contained oneline matchgroup=etermOption start="^\s*video\>" matchgroup=etermType end="\<\(normal\|reverse\)\>" | 46 syn keyword etermColorOptions contained foreground background cursor |
51 syn region etermColorOptions contained oneline matchgroup=etermOption start="^\s*color\>" matchgroup=etermType end="\<\(bd\|ul\|[0-9]\|1[0-5]\)\>" | 47 \ cursor_text pointer |
52 syn keyword etermColorOptions contained foreground background cursor cursor_text pointer | 48 \ nextgroup=etermColorType skipwhite |
53 | 49 |
54 syn region etermColorContext fold transparent matchgroup=etermContext start="^\s*begin\s\+color\s*$" end="^\s*end\>\(\s\+.\{-0,}\)\=$" contains=@etermGeneral,etermColorOptions | 50 syn keyword etermColorType contained bd ul |
55 | 51 syn match etermColorType contained display '\<\%(\d\|1[0-5]\)' |
56 " attributes context | 52 |
57 syn region etermAttrOptions contained oneline matchgroup=etermOption start="^\s*geometry\>" matchgroup=etermType end="\<\d\+x\d\++\d\++\d\+\>" | 53 syn keyword etermColorOptions contained color |
58 syn region etermAttrOptions contained oneline matchgroup=etermOption start="^\s*scrollbar_type\>" matchgroup=etermType end="\<\(motif\|xterm\|next\)\>" | 54 \ nextgroup=etermColorNumber skipwhite |
59 syn region etermAttrOptions contained oneline matchgroup=etermOption start="^\s*font\>" matchgroup=etermType end="\<\(bold\|default\|proportional\|fx\|[0-5]\)\>" | 55 |
60 syn keyword etermAttrOptions contained title name iconname desktop scrollbar_width | 56 syn keyword etermColorNumber contained bd ul nextgroup=etermColorSpec |
61 | 57 \ skipwhite |
62 syn region etermAttrContext fold transparent matchgroup=etermContext start="^\s*begin\s\+attributes\s*$" end="^\s*end\>\(\s\+.\{-0,}\)\=$" contains=@etermGeneral,etermAttrOptions | 58 syn match etermColorNumber contained display '\<\%(\d\|1[0-5]\)' |
63 | 59 \ nextgroup=etermColorSpec skipwhite |
64 " image context | 60 |
65 " image types | 61 syn match etermColorSpec contained display '\S\+' |
66 syn keyword etermImageTypes contained background trough anchor up_arrow | 62 |
67 syn keyword etermImageTypes contained left_arrow right_arrow menu menuitem | 63 syn region etermColorContext fold transparent matchgroup=etermContext |
68 syn keyword etermImageTypes contained submenu button buttonbar down_arrow | 64 \ start='^\s*begin\s\+color' |
69 syn region etermImageOptions contained transparent oneline matchgroup=etermOption start="^\s*type\>" end="$" contains=etermImageTypes | 65 \ end='^\s*end\>' |
70 " image modes | 66 \ contains=@etermGeneral,etermColorOptions |
71 syn keyword etermImageModes contained image trans viewport auto solid | 67 |
72 syn keyword etermImageModesAllow contained allow | 68 syn keyword etermAttrOptions contained geometry nextgroup=etermGeometry |
73 syn region etermImageOptions contained transparent oneline matchgroup=etermOption start="^\s*mode\>" end="$" contains=etermImageModes,etermImageModesAllow | 69 \ skipwhite |
74 " image states | 70 |
75 syn region etermImageOptions contained transparent oneline matchgroup=etermOption start="^\s*state\>" matchgroup=etermType end="\<\(normal\|selected\|clicked\|disabled\)\>" | 71 syn match etermGeometry contained display '\d\+x\d++\d\++\d\+' |
76 " image geometry | 72 |
77 syn region etermImageOptions contained transparent oneline matchgroup=etermOption start="^\s*geom\>" matchgroup=etermType end="\s\+\(\d\+x\d\++\d\++\d\+\)\=:\(\(tile\|scale\|hscale\|vscale\|propscale\)d\=\)\=" | 73 syn keyword etermAttrOptions contained scrollbar_type |
78 " image color modification | 74 \ nextgroup=etermScrollbarType skipwhite |
79 syn region etermImageOptions contained transparent oneline matchgroup=etermOption start="^\s*\(cmod\|colormod\)\>" matchgroup=etermType end="\<\(image\|red\|green\|blue\)\>" | 75 |
80 " other keywords | 76 syn keyword etermScrollbarType contained motif xterm next |
81 syn keyword etermImageOptions contained file padding border bevel color | 77 |
82 | 78 syn keyword etermAttrOptions contained font nextgroup=etermFontType |
83 syn region etermImageContext contained transparent fold matchgroup=etermContext start="^\s*begin\s\+image\s*$" end="^\s*end\>\(\s\+.\{-0,}\)\=$" contains=@etermGeneral,etermImageOptions | 79 \ skipwhite |
84 | 80 |
85 " imageclasses context | 81 syn keyword etermFontType contained bold nextgroup=etermFont skipwhite |
86 syn keyword etermIClassOptions contained icon cache path anim | 82 syn match etermFontType contained display '[0-5]' nextgroup=etermFont |
87 | 83 \ skipwhite |
88 syn region etermIClassContext fold transparent matchgroup=etermContext start="^\s*begin\s\+imageclasses\s*$" end="^\s*end\>\(\s\+.\{-0,}\)\=$" contains=@etermGeneral,etermImageContext,etermIClassOptions | 84 |
89 | 85 syn match etermFont contained display '\S\+' |
90 " menuitem context | 86 |
91 syn region etermMenuItemOptions contained transparent oneline matchgroup=etermOption start="^\s*action\>" matchgroup=etermType end="\<string\|echo\|submenu\|script\|separator\>" | 87 syn keyword etermFontType contained default nextgroup=etermNumber |
92 syn keyword etermMenuItemOptions contained text rtext | 88 \ skipwhite |
93 | 89 |
94 syn region etermMenuItemContext fold transparent matchgroup=etermContext start="^\s*begin\s\+menuitem\s*$" end="^\s*end\>\(\s\+.\{-0,}\)\=$" contains=@etermGeneral,etermMenuItemOptions | 90 syn keyword etermFontType contained proportional nextgroup=etermBoolean |
95 | 91 \ skipwhite |
96 " menu context (should contain - as well, but no...) | 92 |
97 syn keyword etermMenuOptions contained title font_name sep | 93 syn keyword etermFontType contained fx nextgroup=etermString skipwhite |
98 | 94 |
99 syn region etermMenuContext fold transparent matchgroup=etermContext start="^\s*begin\s\+menu\s*$" end="^\s*end\>\(\s\+.\{-0,}\)\=$" contains=@etermGeneral,etermMenuOptions,etermMenuItemContext | 95 syn keyword etermAttrOptions contained title name iconname |
100 | 96 \ nextgroup=etermString skipwhite |
101 " action context | 97 |
102 syn match etermActionDef contained "\<\(to\|string\|echo\|menu\|script\)\>" | 98 syn keyword etermAttrOptions contained scrollbar_width desktop |
103 syn region etermActionsOptions contained transparent oneline matchgroup=etermOption start="^\s*bind\>" end="$" contains=etermActionDef,etermKeyMod | 99 \ nextgroup=etermNumber skipwhite |
104 | 100 |
105 syn region etermActionsContext fold transparent matchgroup=etermContext start="^\s*begin\s\+actions\s*$" end="^\s*end\>\(\s\+.\{-0,}\)\=$" contains=@etermGeneral,etermActionsOptions | 101 syn region etermAttrContext fold transparent matchgroup=etermContext |
106 | 102 \ start='^\s*begin\s\+attributes\' |
107 " button bar context | 103 \ end='^\s*end\>' |
108 syn match etermButtonDef contained "\<\(action\|string\|echo\|menu\|scrupt\)\>" | 104 \ contains=@etermGeneral,etermAttrOptions |
109 syn region etermButtonOptions contained transparent oneline matchgroup=etermOption start="^\s*button\>" end="$" contains=etermButtonDef | 105 |
110 syn keyword etermButtonOptions contained font visible dock | 106 syn keyword etermIClassOptions contained icon path nextgroup=etermString |
111 | 107 \ skipwhite |
112 syn region etermButtonContext fold transparent matchgroup=etermContext start="^\s*begin\s\+button_bar\s*$" end="^\s*end\>\(\s\+.\{-0,}\)\=$" contains=@etermGeneral,etermButtonOptions | 108 syn keyword etermIClassOptions contained cache nextgroup=etermNumber |
113 | 109 \ skipwhite |
114 " multichar context | 110 syn keyword etermIClassOptions contained anim nextgroup=etermNumber |
115 syn keyword etermMultiOptions contained encoding font | 111 \ skipwhite |
116 | 112 |
117 syn region etermMultiContext fold transparent matchgroup=etermContext start="^\s*begin\s\+multichar\s*$" end="^\s*end\>\(\s\+.\{-0,}\)\=$" contains=@etermGeneral,etermMultiOptions | 113 syn region etermIClassContext fold transparent matchgroup=etermContext |
118 | 114 \ start='^\s*begin\s\+imageclasses' |
119 " xim context | 115 \ end='^\s*end\>' |
120 syn keyword etermXimOptions contained input_method preedit_type | 116 \ contains=@etermGeneral,etermImageContext, |
121 | 117 \ etermIClassOptions |
122 syn region etermXimContext fold transparent matchgroup=etermContext start="^\s*begin\s\+xim\s*$" end="^\s*end\>\(\s\+.\{-0,}\)\=$" contains=@etermGeneral,etermXimOptions | 118 |
123 | 119 syn keyword etermImageOptions contained type nextgroup=etermImageType |
124 " toggles context | 120 \ skipwhite |
125 syn keyword etermTogOptions contained map_alert visual_bell login_shell scrollbar utmp_logging meta8 iconic no_input | 121 |
126 syn keyword etermTogOptions contained home_on_output home_on_input scrollbar_floating scrollbar_right scrollbar_popup | 122 syn keyword etermImageTypes contained background trough anchor up_arrow |
127 syn keyword etermTogOptions contained borderless double_buffer no_cursor pause xterm_select select_line | 123 \ left_arrow right_arrow menu menuitem |
128 syn keyword etermTogOptions contained select_trailing_spaces report_as_keysyms itrans immotile_trans buttonbar | 124 \ submenu button buttonbar down_arrow |
129 syn keyword etermTogOptions contained resize_gravity | 125 |
130 | 126 syn keyword etermImageOptions contained mode nextgroup=etermImageModes |
131 syn region etermTogContext fold transparent matchgroup=etermContext start="^\s*begin\s\+toggles\s*$" end="^\s*end\>\(\s\+.\{-0,}\)\=$" contains=@etermGeneral,etermTogOptions | 127 \ skipwhite |
132 | 128 |
133 " keyboard context | 129 syn keyword etermImageModes contained image trans viewport auto solid |
134 syn keyword etermKeyboardOptions contained smallfont_key bigfont_key keysym meta_mod alt_mod | 130 \ nextgroup=etermImageModesAllow skipwhite |
135 syn keyword etermKeyboardOptions contained greek numlock_mod app_keypad app_cursor | 131 syn keyword etermImageModesAllow contained allow nextgroup=etermImageModesR |
136 | 132 \ skipwhite |
137 syn region etermKeyboardContext fold transparent matchgroup=etermContext start="^\s*begin\s\+keyboard\s*$" end="^\s*end\>\(\s\+.\{-0,}\)\=$" contains=@etermGeneral,etermKeyboardOptions | 133 syn keyword etermImageModesR contained image trans viewport auto solid |
138 | 134 |
139 " misc context | 135 syn keyword etermImageOptions contained state nextgroup=etermImageState |
140 syn keyword etermMiscOptions contained print_pipe save_lines cut_chars min_anchor_size | 136 \ skipwhite |
141 syn keyword etermMiscOptions contained border_width line_space finished_title term_name | 137 |
142 syn keyword etermMiscOptions contained finished_text exec | 138 syn keyword etermImageState contained normal selected clicked disabled |
143 | 139 |
144 syn region etermMiscContext fold transparent matchgroup=etermContext start="^\s*begin\s\+misc\s*$" end="^\s*end\>\(\s\+.\{-0,}\)\=$" contains=@etermGeneral,etermMiscOptions | 140 syn keyword etermImageOptions contained color nextgroup=etermImageColorFG |
141 \ skipwhite | |
142 | |
143 syn keyword etermImageColorFG contained '\S\+' nextgroup=etermImageColorBG | |
144 \ skipwhite | |
145 | |
146 syn keyword etermImageColorBG contained '\S\+' | |
147 | |
148 syn keyword etermImageOptions contained file nextgroup=etermString | |
149 \ skipwhite | |
150 | |
151 syn keyword etermImageOptions contained geom nextgroup=etermImageGeom | |
152 \ skipwhite | |
153 | |
154 syn match etermImageGeom contained display | |
155 \ '\s\+\%(\d\+x\d\++\d\++\d\+\)\=:\%(\%(tie\|scale\|hscale\|vscale\|propscale\)d\=\)\=' | |
156 | |
157 syn keyword etermImageOptions contained cmod colormod | |
158 \ nextgroup=etermImageCmod skipwhite | |
159 | |
160 syn keyword etermImageCmod contained image red green blue | |
161 \ nextgroup=etermImageBrightness skipwhite | |
162 | |
163 syn match etermImageBrightness contained display '\<\(\d\+\|0x\x\{1,2}\)\>' | |
164 \ nextgroup=etermImageContrast skipwhite | |
165 | |
166 syn match etermImageContrast contained display '\<\(\d\+\|0x\x\{1,2}\)\>' | |
167 \ nextgroup=etermImageGamma skipwhite | |
168 | |
169 syn match etermImageGamma contained display '\<\(\d\+\|0x\x\{1,2}\)\>' | |
170 \ nextgroup=etermImageGamma skipwhite | |
171 | |
172 syn region etermImageOptions contained matchgroup=etermImageOptions | |
173 \ start='border\|bevel\%(\s\+\%(up\|down\)\)\|padding' | |
174 \ end='$' contains=etermNumber | |
175 | |
176 syn region etermImageContext contained fold transparent | |
177 \ matchgroup=etermContext | |
178 \ start='^\s*begin\s\+image' | |
179 \ end='^\s*end\>' | |
180 \ contains=@etermGeneral,etermImageOptions | |
181 | |
182 syn keyword etermMenuItemOptions contained action | |
183 \ nextgroup=etermMenuItemAction skipwhite | |
184 | |
185 syn keyword etermMenuItemAction contained string echo submenu script | |
186 \ nextgroup=etermString skipwhite | |
187 | |
188 syn keyword etermMenuItemAction contained separator | |
189 | |
190 syn keyword etermMenuItemOptions contained text rtext nextgroup=etermString | |
191 \ skipwhite | |
192 | |
193 syn region etermMenuItemContext contained fold transparent | |
194 \ matchgroup=etermContext | |
195 \ start='^\s*begin\s\+menuitem' | |
196 \ end='^\s*end\>' | |
197 \ contains=@etermGeneral,etermMenuItemOptions | |
198 | |
199 syn keyword etermMenuOptions contained title nextgroup=etermString | |
200 \ skipwhite | |
201 | |
202 syn keyword etermMenuOptions contained font_name nextgroup=etermFont | |
203 \ skipwhite | |
204 | |
205 syn match etermMenuOptions contained display '\<sep\>\|-' | |
206 | |
207 syn region etermMenuContext fold transparent matchgroup=etermContext | |
208 \ start='^\s*begin\s\+menu' | |
209 \ end='^\s*end\>' | |
210 \ contains=@etermGeneral,etermMenuOptions, | |
211 \ etermMenuItemContext | |
212 | |
213 syn keyword etermBind contained bind nextgroup=etermBindMods | |
214 \ skipwhite | |
215 | |
216 syn keyword etermBindMods contained ctrl shift lock mod1 mod2 mod3 mod4 | |
217 \ mod5 alt meta anymod | |
218 \ nextgroup=etermBindMods skipwhite | |
219 | |
220 syn keyword etermBindTo contained to nextgroup=etermBindType | |
221 \ skipwhite | |
222 | |
223 syn keyword etermBindType contained string echo menu script | |
224 \ nextgroup=etermBindParam skipwhite | |
225 | |
226 syn match etermBindParam contained display '\S\+' | |
227 | |
228 syn region etermActionsContext fold transparent matchgroup=etermContext | |
229 \ start='^\s*begin\s\+actions' | |
230 \ end='^\s*end\>' | |
231 \ contains=@etermGeneral,etermActionsOptions | |
232 | |
233 syn keyword etermButtonOptions contained font nextgroup=etermFont skipwhite | |
234 syn keyword etermButtonOptions contained visible nextgroup=etermBoolean | |
235 \ skipwhite | |
236 syn keyword etermButtonOptions contained dock nextgroup=etermDockOption | |
237 \ skipwhite | |
238 | |
239 syn keyword etermDockOption contained top bottom no | |
240 | |
241 syn keyword etermButton contained button nextgroup=etermButtonText | |
242 \ skipwhite | |
243 | |
244 syn region etermButtonText contained display oneline start=+"+ | |
245 \ skip=+\\"+ end=+"+ | |
246 \ nextgroup=etermButtonIcon skipwhite | |
247 | |
248 syn keyword etermButtonIcon contained icon nextgroup=etermButtonIconFile | |
249 \ skipwhite | |
250 | |
251 syn keyword etermButtonIconFile contained '\S\+' nextgroup=etermButtonAction | |
252 \ skipwhite | |
253 | |
254 syn keyword etermButtonAction contained action nextgroup=etermBindType | |
255 \ skipwhite | |
256 | |
257 syn region etermButtonContext fold transparent matchgroup=etermContext | |
258 \ start='^\s*begin\s\+button_bar' | |
259 \ end='^\s*end\>' | |
260 \ contains=@etermGeneral,etermButtonOptions | |
261 | |
262 syn keyword etermMultiOptions contained encoding nextgroup=etermEncoding | |
263 \ skipwhite | |
264 | |
265 syn keyword etermEncoding eucj sjis euckr big5 gb | |
266 syn match etermEncoding display 'iso-10646' | |
267 | |
268 syn keyword etermMultiOptions contained font nextgroup=etermFontType | |
269 \ skipwhite | |
270 | |
271 syn region etermMultiContext fold transparent matchgroup=etermContext | |
272 \ start='^\s*begin\s\+multichar' | |
273 \ end="^\s*end\>' | |
274 \ contains=@etermGeneral,etermMultiOptions | |
275 | |
276 syn keyword etermXimOptions contained input_method | |
277 \ nextgroup=etermInputMethod skipwhite | |
278 | |
279 syn match etermInputMethod contained display '\S+' | |
280 | |
281 syn keyword etermXimOptions contained preedit_type | |
282 \ nextgroup=etermPreeditType skipwhite | |
283 | |
284 syn keyword etermPreeditType contained OverTheSpot OffTheSpot Root | |
285 | |
286 syn region etermXimContext fold transparent matchgroup=etermContext | |
287 \ start='^\s*begin\s\+xim' | |
288 \ end="^\s*end\>' | |
289 \ contains=@etermGeneral,etermXimOptions | |
290 | |
291 syn keyword etermTogOptions contained map_alert visual_bell login_shell | |
292 \ scrollbar utmp_logging meta8 iconic | |
293 \ no_input home_on_output home_on_input | |
294 \ scrollbar_floating scrollbar_right | |
295 \ scrollbar_popup borderless double_buffer | |
296 \ no_cursor pause xterm_select select_line | |
297 \ select_trailing_spaces report_as_keysyms | |
298 \ itrans immotile_trans buttonbar | |
299 \ resize_gravity nextgroup=etermBoolean | |
300 \ skipwhite | |
301 | |
302 syn region etermTogContext fold transparent matchgroup=etermContext | |
303 \ start='^\s*begin\s\+toggles' | |
304 \ end='^\s*end\>' | |
305 \ contains=@etermGeneral,etermTogOptions | |
306 | |
307 syn keyword etermKeyboardOptions contained smallfont_key bigfont_key keysym | |
308 \ nextgroup=etermKeysym skipwhite | |
309 | |
310 syn keyword etermKeysym contained '\S\+' nextgroup=etermString | |
311 \ skipwhite | |
312 | |
313 syn keyword etermKeyboardOptions contained meta_mod alt_mod numlock_mod | |
314 \ nextgroup=etermNumber skipwhite | |
315 | |
316 syn keyword etermKeyboardOptions contained greek app_keypad app_cursor | |
317 \ nextgroup=etermBoolean skipwhite | |
318 | |
319 syn region etermKeyboardContext fold transparent matchgroup=etermContext | |
320 \ start='^\s*begin\s\+keyboard' | |
321 \ end='^\s*end\>' | |
322 \ contains=@etermGeneral,etermKeyboardOptions | |
323 | |
324 syn keyword etermMiscOptions contained print_pipe cut_chars finished_title | |
325 \ finished_text term_name exec | |
326 \ nextgroup=etermString skipwhite | |
327 | |
328 syn keyword etermMiscOptions contained save_lines min_anchor_size | |
329 \ border_width line_space | |
330 | |
331 syn region etermMiscContext fold transparent matchgroup=etermContext | |
332 \ start='^\s*begin\s\+misc' | |
333 \ end='^\s*end\>' | |
334 \ contains=@etermGeneral,etermMiscOptions | |
335 | |
336 syn keyword etermEScreenOptions contained url nextgroup=etermURL skipwhite | |
337 | |
338 syn match etermURL contained display | |
339 \ '\<\%(screen\|twin\)://\%([^@:/]\+\%(@[^:/]\+\%(:[^/]\+\)\=\)\=\)\=/\S\+' | |
340 | |
341 syn keyword etermEScreenOptions contained firewall | |
342 | |
343 syn keyword etermEScreenOptions contained delay nextgroup=etermNumber | |
344 \ skipwhite | |
345 | |
346 syn keyword etermEScreenOptions contained bbar_font nextgroup=etermFont | |
347 \ skipwhite | |
348 | |
349 syn keyword etermEScreenOptions contained bbar_dock nextgroup=etermDockOption | |
350 \ skipwhite | |
351 | |
352 syn region etermEScreenContext fold transparent matchgroup=etermContext | |
353 \ start='^\s*begin\s\+escreen' | |
354 \ end='^\s*end\>' | |
355 \ contains=@etermGeneral,etermEScreenOptions | |
145 | 356 |
146 if exists("eterm_minlines") | 357 if exists("eterm_minlines") |
147 let b:eterm_minlines = eterm_minlines | 358 let b:eterm_minlines = eterm_minlines |
148 else | 359 else |
149 let b:eterm_minlines = 30 | 360 let b:eterm_minlines = 50 |
150 endif | 361 endif |
151 exec "syn sync minlines=" . b:eterm_minlines | 362 exec "syn sync minlines=" . b:eterm_minlines |
152 | 363 |
153 " Define the default highlighting. | 364 hi def link etermTodo Todo |
154 " For version 5.7 and earlier: only when not done already | 365 hi def link etermComment Comment |
155 " For version 5.8 and later: only when an item doesn't have highlighting yet | 366 hi def link etermMagic PreProc |
156 if version >= 508 || !exists("did_eterm_syn_inits") | 367 hi def link etermNumber Number |
157 if version < 508 | 368 hi def link etermString String |
158 let did_eterm_syn_inits = 1 | 369 hi def link etermBoolean Boolean |
159 command -nargs=+ HiLink hi link <args> | 370 hi def link etermPreProc PreProc |
160 else | 371 hi def link etermFunctions Function |
161 command -nargs=+ HiLink hi def link <args> | 372 hi def link etermKeyMod Constant |
162 endif | 373 hi def link etermOption Keyword |
163 | 374 hi def link etermColorOptions etermOption |
164 HiLink etermMagic Special | 375 hi def link etermColor String |
165 HiLink etermComment Comment | 376 hi def link etermVideoType Type |
166 HiLink etermTodo Todo | 377 hi def link etermColorType Type |
167 HiLink etermNumber Number | 378 hi def link etermColorNumber Number |
168 HiLink etermString String | 379 hi def link etermColorSpec etermColor |
169 HiLink etermBoolean Boolean | 380 hi def link etermContext Keyword |
170 HiLink etermColor Number | 381 hi def link etermAttrOptions etermOption |
171 HiLink etermPreProc PreProc | 382 hi def link etermGeometry String |
172 HiLink etermFunctions Function | 383 hi def link etermScrollbarType Type |
173 HiLink etermKeyMod Special | 384 hi def link etermFontType Type |
174 HiLink etermContext Keyword | 385 hi def link etermIClassOptions etermOption |
175 HiLink etermOption Keyword | 386 hi def link etermImageOptions etermOption |
176 HiLink etermType Type | 387 hi def link etermImageTypes Type |
177 HiLink etermColorOptions Keyword | 388 hi def link etermImageModes Type |
178 HiLink etermAttrOptions Keyword | 389 hi def link etermImageModesAllow Keyword |
179 HiLink etermIClassOptions Keyword | 390 hi def link etermImageModesR Type |
180 HiLink etermImageTypes Type | 391 hi def link etermImageState Keyword |
181 HiLink etermImageModes Type | 392 hi def link etermImageColorFG etermColor |
182 HiLink etermImageModesAllow Keyword | 393 hi def link etermImageColorBG etermColor |
183 HiLink etermImageOptions Keyword | 394 hi def link etermImageGeom String |
184 HiLink etermMenuOptions Keyword | 395 hi def link etermImageCmod etermOption |
185 HiLink etermMenuItemOptions Keyword | 396 hi def link etermImageBrightness Number |
186 HiLink etermActionDef Type | 397 hi def link etermImageContrast Number |
187 HiLink etermActionsOptions Keyword | 398 hi def link etermImageGamma Number |
188 HiLink etermButtonDef Type | 399 hi def link etermMenuItemOptions etermOption |
189 HiLink etermButtonOptions Keyword | 400 hi def link etermMenuItemAction Keyword |
190 HiLink etermMultiOptions Keyword | 401 hi def link etermMenuOptions etermOption |
191 HiLink etermXimOptions Keyword | 402 hi def link etermBind Keyword |
192 HiLink etermTogOptions Keyword | 403 hi def link etermBindMods Identifier |
193 HiLink etermKeyboardOptions Keyword | 404 hi def link etermBindTo Keyword |
194 HiLink etermMiscOptions Keyword | 405 hi def link etermBindType Type |
195 delcommand HiLink | 406 hi def link etermBindParam String |
196 endif | 407 hi def link etermButtonOptions etermOption |
408 hi def link etermDockOption etermOption | |
409 hi def link etermButtonText String | |
410 hi def link etermButtonIcon String | |
411 hi def link etermButtonIconFile String | |
412 hi def link etermButtonAction Keyword | |
413 hi def link etermMultiOptions etermOption | |
414 hi def link etermEncoding Identifier | |
415 hi def link etermXimOptions etermOption | |
416 hi def link etermInputMethod Identifier | |
417 hi def link etermPreeditType Type | |
418 hi def link etermTogOptions etermOption | |
419 hi def link etermKeyboardOptions etermOption | |
420 hi def link etermKeysym Constant | |
421 hi def link etermMiscOptions etermOption | |
422 hi def link etermEScreenOptions etermOption | |
423 hi def link etermURL Identifier | |
197 | 424 |
198 let b:current_syntax = "eterm" | 425 let b:current_syntax = "eterm" |
199 | 426 |
200 " vim: set sts=2 sw=2: | 427 let &cpo = s:cpo_save |
428 unlet s:cpo_save |