93 lines · 3.8 KB · Text
RawDownload
" Vim syntax file" Language:         grub(8) configuration file" Maintainer:       Nikolai Weibull <now@bitwi.se>" Latest Revision:  2006-04-19 if exists("b:current_syntax")  finishendif let s:cpo_save = &cposet cpo&vim syn keyword grubTodo          contained TODO FIXME XXX NOTE syn region  grubComment       display oneline start='^#' end='$'                              \ contains=grubTodo,@Spell syn match   grubDevice        display                              \ '(\([fh]d\d\|\d\+\|0x\x\+\)\(,\d\+\)\=\(,\l\)\=)' syn match   grubBlock         display '\(\d\+\)\=+\d\+\(,\(\d\+\)\=+\d\+\)*' syn match   grubNumbers       display '+\=\<\d\+\|0x\x\+\>' syn match   grubBegin         display '^'                              \ nextgroup=@grubCommands,grubComment skipwhite syn cluster grubCommands      contains=grubCommand,grubTitleCommand syn keyword grubCommand       contained default fallback hiddenmenu timeout syn keyword grubTitleCommand  contained title nextgroup=grubTitle skipwhite syn match   grubTitle         contained display '.*' syn keyword grubCommand       contained bootp color device dhcp hide ifconfig                              \ pager partnew parttype password rarp serial setkey                              \ terminal tftpserver unhide blocklist boot cat                              \ chainloader cmp configfile debug displayapm                              \ displaymem embed find fstest geometry halt help                              \ impsprobe initrd install ioprobe kernel lock                              \ makeactive map md5crypt module modulenounzip pause                              \ quit reboot read root rootnoverify savedefault setup                              \ testload testvbe uppermem vbeprobe syn keyword grubSpecial       saved syn match   grubBlink         display 'blink-'syn keyword grubBlack         blacksyn keyword grubBlue          bluesyn keyword grubGreen         greensyn keyword grubRed           redsyn keyword grubMagenta       magentasyn keyword grubBrown         brown yellowsyn keyword grubWhite         whitesyn match   grubLightGray     display 'light-gray'syn match   grubLightBlue     display 'light-blue'syn match   grubLightGreen    display 'light-green'syn match   grubLightCyan     display 'light-cyan'syn match   grubLightRed      display 'light-red'syn match   grubLightMagenta  display 'light-magenta'syn match   grubDarkGray      display 'dark-gray' hi def link grubComment       Commenthi def link grubTodo          Todohi def link grubNumbers       Numberhi def link grubDevice        Identifierhi def link grubBlock         Identifierhi def link grubCommand       Keywordhi def link grubTitleCommand  grubCommandhi def link grubTitle         Stringhi def link grubSpecial       Special hi def      grubBlink         cterm=inversehi def      grubBlack         ctermfg=Black ctermbg=White guifg=Black guibg=Whitehi def      grubBlue          ctermfg=DarkBlue guifg=DarkBluehi def      grubGreen         ctermfg=DarkGreen guifg=DarkGreenhi def      grubRed           ctermfg=DarkRed guifg=DarkRedhi def      grubMagenta       ctermfg=DarkMagenta guifg=DarkMagentahi def      grubBrown         ctermfg=Brown guifg=Brownhi def      grubWhite         ctermfg=White ctermbg=Black guifg=White guibg=Blackhi def      grubLightGray     ctermfg=LightGray guifg=LightGrayhi def      grubLightBlue     ctermfg=LightBlue guifg=LightBluehi def      grubLightGreen    ctermfg=LightGreen guifg=LightGreenhi def      grubLightCyan     ctermfg=LightCyan guifg=LightCyanhi def      grubLightRed      ctermfg=LightRed guifg=LightRedhi def      grubLightMagenta  ctermfg=LightMagenta guifg=LightMagentahi def      grubDarkGray      ctermfg=DarkGray guifg=DarkGray let b:current_syntax = "grub" let &cpo = s:cpo_saveunlet s:cpo_save