annotate runtime/syntax/grub.vim @ 358:e111db373ca4

updated for version 7.0093
author vimboss
date Sat, 25 Jun 2005 22:49:46 +0000
parents 3fc0f57ecb91
children f14cbd913415
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: GRUB Configuration File
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Nikolai Weibull <source@pcppopper.org>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://www.pcppopper.org/vim/syntax/pcp/grub/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Latest Revision: 2004-05-06
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " arch-tag: 7a56ddd0-e551-44bc-b8c0-235fedbdf3c0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn region grubComment display oneline start="^#" end="$" contains=grubTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword grubTodo contained TODO FIXME XXX NOTE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " devices
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match grubDevice display "(\([fh]d\d\|\d\+\|0x\x\+\)\(,\d\+\)\=\(,\l\)\=)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " block lists
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match grubBlock display "\(\d\+\)\=+\d\+\(,\(\d\+\)\=+\d\+\)*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " numbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match grubNumbers display "+\=\<\d\+\|0x\x\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match grubBegin display "^" nextgroup=grubCommand,grubComment skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " menu commands
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword grubCommand contained default fallback hiddenmenu timeout title
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " general commands
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword grubCommand contained bootp color device dhcp hide ifconfig pager
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword grubCommand contained partnew parttype password rarp serial setkey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword grubCommand contained terminal tftpserver unhide blocklist boot cat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword grubCommand contained chainloader cmp configfile debug displayapm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword grubCommand contained displaymem embed find fstest geometry halt help
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword grubCommand contained impsprobe initrd install ioprobe kernel lock
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword grubCommand contained makeactive map md5crypt module modulenounzip pause
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword grubCommand contained quit reboot read root rootnoverify savedefault
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword grubCommand contained setup testload testvbe uppermem vbeprobe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " colors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match grubColor "\(blink-\)\=\(black\|blue\|green\|cyan\|red\|magenta\|brown\|yellow\|white\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match grubColor "\<\(blink-\)\=light-\(gray\|blue\|green\|cyan\|red\|magenta\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match grubColor "\<\(blink-\)\=dark-gray"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " specials
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword grubSpecial saved
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 if version >= 508 || !exists("did_grub_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 let did_grub_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 HiLink grubComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 HiLink grubTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 HiLink grubNumbers Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 HiLink grubDevice Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 HiLink grubBlock Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 HiLink grubCommand Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 HiLink grubColor Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 HiLink grubSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 let b:current_syntax = "grub"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 " vim: set sts=2 sw=2: