Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | " Vim syntax file |
| 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> |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 5 | " Last Change: 2004-07-20 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6 | " URL: http://trific.ath.cx/Ftp/vim/syntax/lilo.vim |
| 7 | |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 8 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9 | " Setup |
| 10 | if version >= 600 |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 11 | if exists("b:current_syntax") |
| 12 | finish |
| 13 | endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14 | else |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 15 | syntax clear |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16 | endif |
| 17 | |
| 18 | if version >= 600 |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 19 | command -nargs=1 SetIsk setlocal iskeyword=<args> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 20 | else |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 21 | command -nargs=1 SetIsk set iskeyword=<args> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 22 | endif |
| 23 | SetIsk @,48-57,.,-,_ |
| 24 | delcommand SetIsk |
| 25 | |
| 26 | syn case ignore |
| 27 | |
| 28 | " Base constructs |
| 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 |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 38 | syn match liloLabel :[^ "]\+: contained contains=liloSpecial,liloEnviron |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 |
| 43 | |
| 44 | " Path |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 45 | syn keyword liloOption backup bitmap boot disktab force-backup keytable map message nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipempty |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 |
| 49 | |
| 50 | " Other |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 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 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 54 | syn keyword liloKernelOpt ramdisk nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipempty |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 55 | syn keyword liloImageOpt password range nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipempty |
| 56 | syn keyword liloDiskOpt set type nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipempty |
| 57 | |
| 58 | " Symbolic |
| 59 | syn keyword liloKernelOpt vga nextgroup=liloEqVga,liloEqVgaComment,liloError skipwhite skipempty |
| 60 | |
| 61 | " Number |
| 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 |
| 64 | |
| 65 | " String |
| 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 |
| 69 | |
| 70 | " Hex number |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 71 | syn keyword liloImageOpt map-drive to boot-as nextgroup=liloEqHexNumber,liloEqHexNumberComment,liloError skipwhite skipempty |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 72 | syn keyword liloDiskOpt bios normal hidden nextgroup=liloEqNumber,liloEqNumberComment,liloError skipwhite skipempty |
| 73 | |
| 74 | " Number list |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 75 | syn keyword liloOption bmp-colors nextgroup=liloEqNumberList,liloEqNumberListComment,liloError skipwhite skipempty |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 76 | |
| 77 | " Number list, some of the numbers followed by p |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 78 | syn keyword liloOption bmp-table bmp-timer nextgroup=liloEqDecNumberPList,liloEqDecNumberPListComment,liloError skipwhite skipempty |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 79 | |
| 80 | " Flag |
| 81 | syn keyword liloOption compact fix-table geometric ignore-table lba32 linear mandatory nowarn prompt |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 82 | syn keyword liloOption bmp-retain el-torito-bootable-CD large-memory suppress-boot-time-BIOS-data |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 83 | syn keyword liloKernelOpt read-only read-write |
| 84 | syn keyword liloImageOpt bypass lock mandatory optional restricted single-key unsafe |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 85 | syn keyword liloImageOpt master-boot wmwarn wmdisable |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 86 | syn keyword liloDiskOpt change activate deactivate inaccessible reset |
| 87 | |
| 88 | " Image |
| 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 |
| 92 | |
| 93 | " Vga keywords |
| 94 | syn keyword liloVgaKeyword ask ext extended normal contained |
| 95 | |
| 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 |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 103 | syn match liloEqLabelStringComment "#.*$" contained nextgroup=liloEqLabelString,liloEqLabelStringComment,liloError skipwhite skipempty |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 |
| 107 | |
| 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 |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 115 | syn match liloEqLabelString "=" contained nextgroup=liloString,liloLabel,liloLabelStringComment,liloError skipwhite skipempty |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 |
| 119 | |
| 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 |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 127 | syn match liloLabelStringComment "#.*$" contained nextgroup=liloString,liloLabel,liloLabelStringComment,liloError skipwhite skipempty |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 |
| 131 | |
| 132 | " Define the default highlighting |
| 133 | if version >= 508 || !exists("did_lilo_syntax_inits") |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 134 | if version < 508 |
| 135 | let did_lilo_syntax_inits = 1 |
| 136 | command -nargs=+ HiLink hi link <args> |
| 137 | else |
| 138 | command -nargs=+ HiLink hi def link <args> |
| 139 | endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 140 | |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 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 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 150 | |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 151 | HiLink liloError Error |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 152 | |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 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 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 167 | |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 168 | HiLink liloDiskOpt liloOption |
| 169 | HiLink liloKernelOpt liloOption |
| 170 | HiLink liloImageOpt liloOption |
| 171 | HiLink liloOption Keyword |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 172 | |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 173 | HiLink liloDecNumber liloNumber |
| 174 | HiLink liloHexNumber liloNumber |
| 175 | HiLink liloDecNumberP liloNumber |
| 176 | HiLink liloNumber Number |
| 177 | HiLink liloString String |
| 178 | HiLink liloPath Constant |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 179 | |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 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 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 190 | |
Bram Moolenaar | 5eb86f9 | 2004-07-26 12:53:41 +0000 | [diff] [blame] | 191 | delcommand HiLink |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 192 | endif |
| 193 | |
| 194 | let b:current_syntax = "lilo" |