annotate runtime/syntax/grub.vim @ 14715:8b84ae8ebcdd

Added tag v8.1.0369 for changeset bdbb049c2aa8b6bf85cf3ddf89c9179d78e18b26
author Christian Brabandt <cb@256bit.org>
date Tue, 11 Sep 2018 22:45:07 +0200
parents 1218c5353e2b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
2 " Language: grub(8) configuration file
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
4 " Latest Revision: 2006-04-19
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
6 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
10 let s:cpo_save = &cpo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
11 set cpo&vim
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
12
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
13 syn keyword grubTodo contained TODO FIXME XXX NOTE
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
14
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
15 syn region grubComment display oneline start='^#' end='$'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
16 \ contains=grubTodo,@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
18 syn match grubDevice display
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
19 \ '(\([fh]d\d\|\d\+\|0x\x\+\)\(,\d\+\)\=\(,\l\)\=)'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
20
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
21 syn match grubBlock display '\(\d\+\)\=+\d\+\(,\(\d\+\)\=+\d\+\)*'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
23 syn match grubNumbers display '+\=\<\d\+\|0x\x\+\>'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
24
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
25 syn match grubBegin display '^'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
26 \ nextgroup=@grubCommands,grubComment skipwhite
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
28 syn cluster grubCommands contains=grubCommand,grubTitleCommand
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
29
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
30 syn keyword grubCommand contained default fallback hiddenmenu timeout
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
31
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
32 syn keyword grubTitleCommand contained title nextgroup=grubTitle skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
33
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
34 syn match grubTitle contained display '.*'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
36 syn keyword grubCommand contained bootp color device dhcp hide ifconfig
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
37 \ pager partnew parttype password rarp serial setkey
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
38 \ terminal tftpserver unhide blocklist boot cat
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
39 \ chainloader cmp configfile debug displayapm
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
40 \ displaymem embed find fstest geometry halt help
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
41 \ impsprobe initrd install ioprobe kernel lock
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
42 \ makeactive map md5crypt module modulenounzip pause
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
43 \ quit reboot read root rootnoverify savedefault setup
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
44 \ testload testvbe uppermem vbeprobe
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
46 syn keyword grubSpecial saved
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
48 syn match grubBlink display 'blink-'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
49 syn keyword grubBlack black
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
50 syn keyword grubBlue blue
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
51 syn keyword grubGreen green
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
52 syn keyword grubRed red
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
53 syn keyword grubMagenta magenta
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
54 syn keyword grubBrown brown yellow
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
55 syn keyword grubWhite white
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
56 syn match grubLightGray display 'light-gray'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
57 syn match grubLightBlue display 'light-blue'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
58 syn match grubLightGreen display 'light-green'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
59 syn match grubLightCyan display 'light-cyan'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
60 syn match grubLightRed display 'light-red'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
61 syn match grubLightMagenta display 'light-magenta'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
62 syn match grubDarkGray display 'dark-gray'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
64 hi def link grubComment Comment
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
65 hi def link grubTodo Todo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
66 hi def link grubNumbers Number
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
67 hi def link grubDevice Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
68 hi def link grubBlock Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
69 hi def link grubCommand Keyword
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
70 hi def link grubTitleCommand grubCommand
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
71 hi def link grubTitle String
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
72 hi def link grubSpecial Special
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
74 hi def grubBlink cterm=inverse
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
75 hi def grubBlack ctermfg=Black ctermbg=White guifg=Black guibg=White
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
76 hi def grubBlue ctermfg=DarkBlue guifg=DarkBlue
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
77 hi def grubGreen ctermfg=DarkGreen guifg=DarkGreen
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
78 hi def grubRed ctermfg=DarkRed guifg=DarkRed
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
79 hi def grubMagenta ctermfg=DarkMagenta guifg=DarkMagenta
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
80 hi def grubBrown ctermfg=Brown guifg=Brown
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
81 hi def grubWhite ctermfg=White ctermbg=Black guifg=White guibg=Black
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
82 hi def grubLightGray ctermfg=LightGray guifg=LightGray
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
83 hi def grubLightBlue ctermfg=LightBlue guifg=LightBlue
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
84 hi def grubLightGreen ctermfg=LightGreen guifg=LightGreen
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
85 hi def grubLightCyan ctermfg=LightCyan guifg=LightCyan
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
86 hi def grubLightRed ctermfg=LightRed guifg=LightRed
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
87 hi def grubLightMagenta ctermfg=LightMagenta guifg=LightMagenta
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
88 hi def grubDarkGray ctermfg=DarkGray guifg=DarkGray
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 let b:current_syntax = "grub"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
92 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
93 unlet s:cpo_save