7
|
1 " Vim syntax file
|
|
2 " Language: Dylan Library Interface Files
|
|
3 " Authors: Justus Pendleton <justus@acm.org>
|
|
4 " Brent Fulgham <bfulgham@debian.org>
|
|
5 " Last Change: Fri Sep 29 13:50:20 PDT 2000
|
|
6 "
|
|
7
|
|
8 " For version 5.x: Clear all syntax items
|
|
9 " For version 6.x: Quit when a syntax file was already loaded
|
|
10 if version < 600
|
|
11 syntax clear
|
|
12 elseif exists("b:current_syntax")
|
|
13 finish
|
|
14 endif
|
|
15
|
|
16 syn case ignore
|
|
17
|
|
18 syn region dylanlidInfo matchgroup=Statement start="^" end=":" oneline
|
|
19 syn region dylanlidEntry matchgroup=Statement start=":%" end="$" oneline
|
|
20
|
|
21 syn sync lines=50
|
|
22
|
|
23 " Define the default highlighting.
|
|
24 " For version 5.7 and earlier: only when not done already
|
|
25 " For version 5.8 and later: only when an item doesn't have highlighting yet
|
|
26 if version >= 508 || !exists("did_dylan_lid_syntax_inits")
|
|
27 if version < 508
|
|
28 let did_dylan_lid_syntax_inits = 1
|
|
29 command -nargs=+ HiLink hi link <args>
|
|
30 else
|
|
31 command -nargs=+ HiLink hi def link <args>
|
|
32 endif
|
|
33
|
|
34 HiLink dylanlidInfo Type
|
|
35 HiLink dylanlidEntry String
|
|
36
|
|
37 delcommand HiLink
|
|
38 endif
|
|
39
|
|
40 let b:current_syntax = "dylanlid"
|
|
41
|
|
42 " vim:ts=8
|