2 " This is a GENERATED FILE. Please always refer to source file at the URI below.
3 " Language: lilo configuration (lilo.conf)
4 " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
5 " Last Change: 2004-07-20
6 " URL: http://trific.ath.cx/Ftp/vim/syntax/lilo.vim
11 if exists("b:current_syntax")
19 command -nargs=1 SetIsk setlocal iskeyword=<args>
21 command -nargs=1 SetIsk set iskeyword=<args>
29 syn match liloError "\S\+"
30 syn match liloComment "#.*$"
31 syn match liloEnviron "\$\w\+" contained
32 syn match liloEnviron "\${[^}]\+}" contained
33 syn match liloDecNumber "\d\+" contained
34 syn match liloHexNumber "0[xX]\x\+" contained
35 syn match liloDecNumberP "\d\+p\=" contained
36 syn match liloSpecial contained "\\\(\"\|\\\|$\)"
37 syn region liloString start=+"+ skip=+\\\\\|\\"+ end=+"+ contained contains=liloSpecial,liloEnviron
38 syn match liloLabel :[^ "]\+: contained contains=liloSpecial,liloEnviron
39 syn region liloPath start=+[$/]+ skip=+\\\\\|\\ \|\\$"+ end=+ \|$+ contained contains=liloSpecial,liloEnviron
40 syn match liloDecNumberList "\(\d\|,\)\+" contained contains=liloDecNumber
41 syn match liloDecNumberPList "\(\d\|[,p]\)\+" contained contains=liloDecNumberP,liloDecNumber
42 syn region liloAnything start=+[^[:space:]#]+ skip=+\\\\\|\\ \|\\$+ end=+ \|$+ contained contains=liloSpecial,liloEnviron,liloString
45 syn keyword liloOption backup bitmap boot disktab force-backup keytable map message nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipempty
46 syn keyword liloKernelOpt initrd root nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipempty
47 syn keyword liloImageOpt path loader table nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipempty
48 syn keyword liloDiskOpt partition nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipempty
51 syn keyword liloOption menu-scheme raid-extra-boot serial install nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipempty
52 syn keyword liloOption bios-passes-dl nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipempty
53 syn keyword liloOption default label alias wmdefault nextgroup=liloEqLabelString,liloEqLabelStringComment,liloError skipwhite skipempty
54 syn keyword liloKernelOpt ramdisk nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipempty
55 syn keyword liloImageOpt password range nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipempty
56 syn keyword liloDiskOpt set type nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipempty
59 syn keyword liloKernelOpt vga nextgroup=liloEqVga,liloEqVgaComment,liloError skipwhite skipempty
62 syn keyword liloOption delay timeout verbose nextgroup=liloEqDecNumber,liloEqDecNumberComment,liloError skipwhite skipempty
63 syn keyword liloDiskOpt sectors heads cylinders start nextgroup=liloEqDecNumber,liloEqDecNumberComment,liloError skipwhite skipempty
66 syn keyword liloOption menu-title nextgroup=liloEqString,liloEqStringComment,liloError skipwhite skipempty
67 syn keyword liloKernelOpt append nextgroup=liloEqString,liloEqStringComment,liloError skipwhite skipempty
68 syn keyword liloImageOpt fallback literal nextgroup=liloEqString,liloEqStringComment,liloError skipwhite skipempty
71 syn keyword liloImageOpt map-drive to boot-as nextgroup=liloEqHexNumber,liloEqHexNumberComment,liloError skipwhite skipempty
72 syn keyword liloDiskOpt bios normal hidden nextgroup=liloEqNumber,liloEqNumberComment,liloError skipwhite skipempty
75 syn keyword liloOption bmp-colors nextgroup=liloEqNumberList,liloEqNumberListComment,liloError skipwhite skipempty
77 " Number list, some of the numbers followed by p
78 syn keyword liloOption bmp-table bmp-timer nextgroup=liloEqDecNumberPList,liloEqDecNumberPListComment,liloError skipwhite skipempty
81 syn keyword liloOption compact fix-table geometric ignore-table lba32 linear mandatory nowarn prompt
82 syn keyword liloOption bmp-retain el-torito-bootable-CD large-memory suppress-boot-time-BIOS-data
83 syn keyword liloKernelOpt read-only read-write
84 syn keyword liloImageOpt bypass lock mandatory optional restricted single-key unsafe
85 syn keyword liloImageOpt master-boot wmwarn wmdisable
86 syn keyword liloDiskOpt change activate deactivate inaccessible reset
89 syn keyword liloImage image other nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipempty
90 syn keyword liloDisk disk nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipempty
91 syn keyword liloChRules change-rules
94 syn keyword liloVgaKeyword ask ext extended normal contained
96 " Comment followed by equal sign and ...
97 syn match liloEqPathComment "#.*$" contained nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipempty
98 syn match liloEqVgaComment "#.*$" contained nextgroup=liloEqVga,liloEqVgaComment,liloError skipwhite skipempty
99 syn match liloEqNumberComment "#.*$" contained nextgroup=liloEqNumber,liloEqNumberComment,liloError skipwhite skipempty
100 syn match liloEqDecNumberComment "#.*$" contained nextgroup=liloEqDecNumber,liloEqDecNumberComment,liloError skipwhite skipempty
101 syn match liloEqHexNumberComment "#.*$" contained nextgroup=liloEqHexNumber,liloEqHexNumberComment,liloError skipwhite skipempty
102 syn match liloEqStringComment "#.*$" contained nextgroup=liloEqString,liloEqStringComment,liloError skipwhite skipempty
103 syn match liloEqLabelStringComment "#.*$" contained nextgroup=liloEqLabelString,liloEqLabelStringComment,liloError skipwhite skipempty
104 syn match liloEqNumberListComment "#.*$" contained nextgroup=liloEqNumberList,liloEqNumberListComment,liloError skipwhite skipempty
105 syn match liloEqDecNumberPListComment "#.*$" contained nextgroup=liloEqDecNumberPList,liloEqDecNumberPListComment,liloError skipwhite skipempty
106 syn match liloEqAnythingComment "#.*$" contained nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipempty
108 " Equal sign followed by ...
109 syn match liloEqPath "=" contained nextgroup=liloPath,liloPathComment,liloError skipwhite skipempty
110 syn match liloEqVga "=" contained nextgroup=liloVgaKeyword,liloHexNumber,liloDecNumber,liloVgaComment,liloError skipwhite skipempty
111 syn match liloEqNumber "=" contained nextgroup=liloDecNumber,liloHexNumber,liloNumberComment,liloError skipwhite skipempty
112 syn match liloEqDecNumber "=" contained nextgroup=liloDecNumber,liloDecNumberComment,liloError skipwhite skipempty
113 syn match liloEqHexNumber "=" contained nextgroup=liloHexNumber,liloHexNumberComment,liloError skipwhite skipempty
114 syn match liloEqString "=" contained nextgroup=liloString,liloStringComment,liloError skipwhite skipempty
115 syn match liloEqLabelString "=" contained nextgroup=liloString,liloLabel,liloLabelStringComment,liloError skipwhite skipempty
116 syn match liloEqNumberList "=" contained nextgroup=liloDecNumberList,liloDecNumberListComment,liloError skipwhite skipempty
117 syn match liloEqDecNumberPList "=" contained nextgroup=liloDecNumberPList,liloDecNumberPListComment,liloError skipwhite skipempty
118 syn match liloEqAnything "=" contained nextgroup=liloAnything,liloAnythingComment,liloError skipwhite skipempty
120 " Comment followed by ...
121 syn match liloPathComment "#.*$" contained nextgroup=liloPath,liloPathComment,liloError skipwhite skipempty
122 syn match liloVgaComment "#.*$" contained nextgroup=liloVgaKeyword,liloHexNumber,liloVgaComment,liloError skipwhite skipempty
123 syn match liloNumberComment "#.*$" contained nextgroup=liloDecNumber,liloHexNumber,liloNumberComment,liloError skipwhite skipempty
124 syn match liloDecNumberComment "#.*$" contained nextgroup=liloDecNumber,liloDecNumberComment,liloError skipwhite skipempty
125 syn match liloHexNumberComment "#.*$" contained nextgroup=liloHexNumber,liloHexNumberComment,liloError skipwhite skipempty
126 syn match liloStringComment "#.*$" contained nextgroup=liloString,liloStringComment,liloError skipwhite skipempty
127 syn match liloLabelStringComment "#.*$" contained nextgroup=liloString,liloLabel,liloLabelStringComment,liloError skipwhite skipempty
128 syn match liloDecNumberListComment "#.*$" contained nextgroup=liloDecNumberList,liloDecNumberListComment,liloError skipwhite skipempty
129 syn match liloDecNumberPListComment "#.*$" contained nextgroup=liloDecNumberPList,liloDecNumberPListComment,liloError skipwhite skipempty
130 syn match liloAnythingComment "#.*$" contained nextgroup=liloAnything,liloAnythingComment,liloError skipwhite skipempty
132 " Define the default highlighting
133 if version >= 508 || !exists("did_lilo_syntax_inits")
135 let did_lilo_syntax_inits = 1
136 command -nargs=+ HiLink hi link <args>
138 command -nargs=+ HiLink hi def link <args>
141 HiLink liloEqPath liloEquals
142 HiLink liloEqWord liloEquals
143 HiLink liloEqVga liloEquals
144 HiLink liloEqDecNumber liloEquals
145 HiLink liloEqHexNumber liloEquals
146 HiLink liloEqNumber liloEquals
147 HiLink liloEqString liloEquals
148 HiLink liloEqAnything liloEquals
149 HiLink liloEquals Special
151 HiLink liloError Error
153 HiLink liloEqPathComment liloComment
154 HiLink liloEqVgaComment liloComment
155 HiLink liloEqDecNumberComment liloComment
156 HiLink liloEqHexNumberComment liloComment
157 HiLink liloEqStringComment liloComment
158 HiLink liloEqAnythingComment liloComment
159 HiLink liloPathComment liloComment
160 HiLink liloVgaComment liloComment
161 HiLink liloDecNumberComment liloComment
162 HiLink liloHexNumberComment liloComment
163 HiLink liloNumberComment liloComment
164 HiLink liloStringComment liloComment
165 HiLink liloAnythingComment liloComment
166 HiLink liloComment Comment
168 HiLink liloDiskOpt liloOption
169 HiLink liloKernelOpt liloOption
170 HiLink liloImageOpt liloOption
171 HiLink liloOption Keyword
173 HiLink liloDecNumber liloNumber
174 HiLink liloHexNumber liloNumber
175 HiLink liloDecNumberP liloNumber
176 HiLink liloNumber Number
177 HiLink liloString String
178 HiLink liloPath Constant
180 HiLink liloSpecial Special
181 HiLink liloLabel Title
182 HiLink liloDecNumberList Special
183 HiLink liloDecNumberPList Special
184 HiLink liloAnything Normal
185 HiLink liloEnviron Identifier
186 HiLink liloVgaKeyword Identifier
187 HiLink liloImage Type
188 HiLink liloChRules Preproc
189 HiLink liloDisk Preproc
194 let b:current_syntax = "lilo"