codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: lilo configuration (lilo.conf)3" Maintainer: Niels Horn <niels.horn@gmail.com>4" Previous Maintainer: David Necas (Yeti) <yeti@physics.muni.cz>5" Last Change: 2010-02-036 7" Setup8" quit when a syntax file was already loaded9if exists("b:current_syntax")10 finish11endif12 13setlocal iskeyword=@,48-57,.,-,_14 15syn case ignore16 17" Base constructs18syn match liloError "\S\+"19syn match liloComment "#.*$"20syn match liloEnviron "\$\w\+" contained21syn match liloEnviron "\${[^}]\+}" contained22syn match liloDecNumber "\d\+" contained23syn match liloHexNumber "0[xX]\x\+" contained24syn match liloDecNumberP "\d\+p\=" contained25syn match liloSpecial contained "\\\(\"\|\\\|$\)"26syn region liloString start=+"+ skip=+\\\\\|\\"+ end=+"+ contained contains=liloSpecial,liloEnviron27syn match liloLabel :[^ "]\+: contained contains=liloSpecial,liloEnviron28syn region liloPath start=+[$/]+ skip=+\\\\\|\\ \|\\$"+ end=+ \|$+ contained contains=liloSpecial,liloEnviron29syn match liloDecNumberList "\(\d\|,\)\+" contained contains=liloDecNumber30syn match liloDecNumberPList "\(\d\|[,p]\)\+" contained contains=liloDecNumberP,liloDecNumber31syn region liloAnything start=+[^[:space:]#]+ skip=+\\\\\|\\ \|\\$+ end=+ \|$+ contained contains=liloSpecial,liloEnviron,liloString32 33" Path34syn keyword liloOption backup bitmap boot disktab force-backup keytable map message nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipempty35syn keyword liloKernelOpt initrd root nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipempty36syn keyword liloImageOpt path loader table nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipempty37syn keyword liloDiskOpt partition nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipempty38 39" Other40syn keyword liloOption menu-scheme raid-extra-boot serial install nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipempty41syn keyword liloOption bios-passes-dl nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipempty42syn keyword liloOption default label alias wmdefault nextgroup=liloEqLabelString,liloEqLabelStringComment,liloError skipwhite skipempty43syn keyword liloKernelOpt ramdisk nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipempty44syn keyword liloImageOpt password range nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipempty45syn keyword liloDiskOpt set type nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipempty46 47" Symbolic48syn keyword liloKernelOpt vga nextgroup=liloEqVga,liloEqVgaComment,liloError skipwhite skipempty49 50" Number51syn keyword liloOption delay timeout verbose nextgroup=liloEqDecNumber,liloEqDecNumberComment,liloError skipwhite skipempty52syn keyword liloDiskOpt sectors heads cylinders start nextgroup=liloEqDecNumber,liloEqDecNumberComment,liloError skipwhite skipempty53 54" String55syn keyword liloOption menu-title nextgroup=liloEqString,liloEqStringComment,liloError skipwhite skipempty56syn keyword liloKernelOpt append addappend nextgroup=liloEqString,liloEqStringComment,liloError skipwhite skipempty57syn keyword liloImageOpt fallback literal nextgroup=liloEqString,liloEqStringComment,liloError skipwhite skipempty58 59" Hex number60syn keyword liloImageOpt map-drive to boot-as nextgroup=liloEqHexNumber,liloEqHexNumberComment,liloError skipwhite skipempty61syn keyword liloDiskOpt bios normal hidden nextgroup=liloEqNumber,liloEqNumberComment,liloError skipwhite skipempty62 63" Number list64syn keyword liloOption bmp-colors nextgroup=liloEqNumberList,liloEqNumberListComment,liloError skipwhite skipempty65 66" Number list, some of the numbers followed by p67syn keyword liloOption bmp-table bmp-timer nextgroup=liloEqDecNumberPList,liloEqDecNumberPListComment,liloError skipwhite skipempty68 69" Flag70syn keyword liloOption compact fix-table geometric ignore-table lba32 linear mandatory nowarn prompt71syn keyword liloOption bmp-retain el-torito-bootable-CD large-memory suppress-boot-time-BIOS-data72syn keyword liloKernelOpt read-only read-write73syn keyword liloImageOpt bypass lock mandatory optional restricted single-key unsafe74syn keyword liloImageOpt master-boot wmwarn wmdisable75syn keyword liloDiskOpt change activate deactivate inaccessible reset76 77" Image78syn keyword liloImage image other nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipempty79syn keyword liloDisk disk nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipempty80syn keyword liloChRules change-rules81 82" Vga keywords83syn keyword liloVgaKeyword ask ext extended normal contained84 85" Comment followed by equal sign and ...86syn match liloEqPathComment "#.*$" contained nextgroup=liloEqPath,liloEqPathComment,liloError skipwhite skipempty87syn match liloEqVgaComment "#.*$" contained nextgroup=liloEqVga,liloEqVgaComment,liloError skipwhite skipempty88syn match liloEqNumberComment "#.*$" contained nextgroup=liloEqNumber,liloEqNumberComment,liloError skipwhite skipempty89syn match liloEqDecNumberComment "#.*$" contained nextgroup=liloEqDecNumber,liloEqDecNumberComment,liloError skipwhite skipempty90syn match liloEqHexNumberComment "#.*$" contained nextgroup=liloEqHexNumber,liloEqHexNumberComment,liloError skipwhite skipempty91syn match liloEqStringComment "#.*$" contained nextgroup=liloEqString,liloEqStringComment,liloError skipwhite skipempty92syn match liloEqLabelStringComment "#.*$" contained nextgroup=liloEqLabelString,liloEqLabelStringComment,liloError skipwhite skipempty93syn match liloEqNumberListComment "#.*$" contained nextgroup=liloEqNumberList,liloEqNumberListComment,liloError skipwhite skipempty94syn match liloEqDecNumberPListComment "#.*$" contained nextgroup=liloEqDecNumberPList,liloEqDecNumberPListComment,liloError skipwhite skipempty95syn match liloEqAnythingComment "#.*$" contained nextgroup=liloEqAnything,liloEqAnythingComment,liloError skipwhite skipempty96 97" Equal sign followed by ...98syn match liloEqPath "=" contained nextgroup=liloPath,liloPathComment,liloError skipwhite skipempty99syn match liloEqVga "=" contained nextgroup=liloVgaKeyword,liloHexNumber,liloDecNumber,liloVgaComment,liloError skipwhite skipempty100syn match liloEqNumber "=" contained nextgroup=liloDecNumber,liloHexNumber,liloNumberComment,liloError skipwhite skipempty101syn match liloEqDecNumber "=" contained nextgroup=liloDecNumber,liloDecNumberComment,liloError skipwhite skipempty102syn match liloEqHexNumber "=" contained nextgroup=liloHexNumber,liloHexNumberComment,liloError skipwhite skipempty103syn match liloEqString "=" contained nextgroup=liloString,liloStringComment,liloError skipwhite skipempty104syn match liloEqLabelString "=" contained nextgroup=liloString,liloLabel,liloLabelStringComment,liloError skipwhite skipempty105syn match liloEqNumberList "=" contained nextgroup=liloDecNumberList,liloDecNumberListComment,liloError skipwhite skipempty106syn match liloEqDecNumberPList "=" contained nextgroup=liloDecNumberPList,liloDecNumberPListComment,liloError skipwhite skipempty107syn match liloEqAnything "=" contained nextgroup=liloAnything,liloAnythingComment,liloError skipwhite skipempty108 109" Comment followed by ...110syn match liloPathComment "#.*$" contained nextgroup=liloPath,liloPathComment,liloError skipwhite skipempty111syn match liloVgaComment "#.*$" contained nextgroup=liloVgaKeyword,liloHexNumber,liloVgaComment,liloError skipwhite skipempty112syn match liloNumberComment "#.*$" contained nextgroup=liloDecNumber,liloHexNumber,liloNumberComment,liloError skipwhite skipempty113syn match liloDecNumberComment "#.*$" contained nextgroup=liloDecNumber,liloDecNumberComment,liloError skipwhite skipempty114syn match liloHexNumberComment "#.*$" contained nextgroup=liloHexNumber,liloHexNumberComment,liloError skipwhite skipempty115syn match liloStringComment "#.*$" contained nextgroup=liloString,liloStringComment,liloError skipwhite skipempty116syn match liloLabelStringComment "#.*$" contained nextgroup=liloString,liloLabel,liloLabelStringComment,liloError skipwhite skipempty117syn match liloDecNumberListComment "#.*$" contained nextgroup=liloDecNumberList,liloDecNumberListComment,liloError skipwhite skipempty118syn match liloDecNumberPListComment "#.*$" contained nextgroup=liloDecNumberPList,liloDecNumberPListComment,liloError skipwhite skipempty119syn match liloAnythingComment "#.*$" contained nextgroup=liloAnything,liloAnythingComment,liloError skipwhite skipempty120 121" Define the default highlighting122 123hi def link liloEqPath liloEquals124hi def link liloEqWord liloEquals125hi def link liloEqVga liloEquals126hi def link liloEqDecNumber liloEquals127hi def link liloEqHexNumber liloEquals128hi def link liloEqNumber liloEquals129hi def link liloEqString liloEquals130hi def link liloEqAnything liloEquals131hi def link liloEquals Special132 133hi def link liloError Error134 135hi def link liloEqPathComment liloComment136hi def link liloEqVgaComment liloComment137hi def link liloEqDecNumberComment liloComment138hi def link liloEqHexNumberComment liloComment139hi def link liloEqStringComment liloComment140hi def link liloEqAnythingComment liloComment141hi def link liloPathComment liloComment142hi def link liloVgaComment liloComment143hi def link liloDecNumberComment liloComment144hi def link liloHexNumberComment liloComment145hi def link liloNumberComment liloComment146hi def link liloStringComment liloComment147hi def link liloAnythingComment liloComment148hi def link liloComment Comment149 150hi def link liloDiskOpt liloOption151hi def link liloKernelOpt liloOption152hi def link liloImageOpt liloOption153hi def link liloOption Keyword154 155hi def link liloDecNumber liloNumber156hi def link liloHexNumber liloNumber157hi def link liloDecNumberP liloNumber158hi def link liloNumber Number159hi def link liloString String160hi def link liloPath Constant161 162hi def link liloSpecial Special163hi def link liloLabel Title164hi def link liloDecNumberList Special165hi def link liloDecNumberPList Special166hi def link liloAnything Normal167hi def link liloEnviron Identifier168hi def link liloVgaKeyword Identifier169hi def link liloImage Type170hi def link liloChRules Preproc171hi def link liloDisk Preproc172 173 174let b:current_syntax = "lilo"175 