Mercurial > index.cgi > dotfiles
comparison .vim/syntax/yum.vim @ 41:2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
* Brought ~/.vim into repository (some syntax hilighting add-ons, gnupg
plugin)
* Hard-coded paths for aliases so as not to conflict with GNU coreutils from a
Macports install
* Removed dvra alias
* Added $VNCVIEWER and changed VNC-type aliases to use it
* Added syrinx aliases
* Added syrinx to toodledo targets
author | huston@80426f53-59d1-405d-934b-f07cd76f4a1a |
---|---|
date | Thu, 17 Jun 2010 16:29:11 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
40:21cf7b5fa0d6 | 41:2bea356b1032 |
---|---|
1 " Vim syntax file | |
2 " Language: yum.conf - Yellowdog Updater Modified | |
3 " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz> | |
4 " Last Change: 2003-11-17 | |
5 " URL: http://trific.ath.cx/Ftp/vim/syntax/yum.vim | |
6 | |
7 " Setup {{{ | |
8 " React to possibly already-defined syntax. | |
9 " For version 5.x: Clear all syntax items unconditionally | |
10 " For version 6.x: Quit when a syntax file was already loaded | |
11 if version >= 600 | |
12 if exists("b:current_syntax") | |
13 finish | |
14 endif | |
15 else | |
16 syntax clear | |
17 endif | |
18 | |
19 syn case match | |
20 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}} | |
21 " Comments {{{ | |
22 syn match yumComment "#.*$" contains=yumTodo | |
23 syn keyword yumTodo TODO FIXME NOT XXX contained | |
24 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}} | |
25 " Sectioning and keywords {{{ | |
26 syn match yumSection "^\[[^] ]\+\]" contains=yumMain | |
27 syn keyword yumMain main contained | |
28 syn keyword yumMainKeyword cachedir debuglevel errorlevel logfile contained | |
29 syn keyword yumMainKeyword tolerant pkgpolicy exclude exactarch contained | |
30 syn keyword yumMainKeyword distroverpkg diskspacecheck retries contained | |
31 syn keyword yumMainKeyword installonlypkgs assumeyes commands contained | |
32 " deprecated: syn keyword yumMainKeyword kernelpkgnames contained | |
33 syn keyword yumServerKeyword name nextgroup=yumTitle contained | |
34 syn keyword yumServerKeyword baseurl gpgcheck failovermethod exclude contained | |
35 syn match yumBOL "^" nextgroup=yumComment,yumSection,yumMainKeyword,yumServerKeyword skipwhite | |
36 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}} | |
37 " Values and specials {{{ | |
38 syn match yumTitle ".*" contained contains=yumVariable | |
39 syn keyword yumPkgPolicy newest last | |
40 syn keyword yumCommand update upgrade install info remove list clean provides | |
41 syn keyword yumCommand search groupinstall groupupdate grouplist | |
42 syn match yumCommand "\<check-update\>" | |
43 syn keyword yumFailoverMethod roundrobin priority | |
44 syn match yumVariable "\$\(releasever\|arch\|basearch\|YUM[0-9]\)" | |
45 syn match yumSpecial "[*?]" | |
46 syn match yumDecNumber "\<\d\+\>" | |
47 syn match yumURL "\<\(http\|ftp\|file\)://[^ ]\+" contains=yumVariable | |
48 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}} | |
49 " Define the default highlighting {{{ | |
50 " For version 5.7 and earlier: Only when not done already | |
51 " For version 5.8 and later: Only when an item doesn't have highlighting yet | |
52 if version >= 508 || !exists("did_yum_syntax_inits") | |
53 if version < 508 | |
54 let did_yum_syntax_inits = 1 | |
55 command -nargs=+ HiLink hi link <args> | |
56 else | |
57 command -nargs=+ HiLink hi def link <args> | |
58 endif | |
59 | |
60 HiLink yumComment Comment | |
61 HiLink yumTodo Todo | |
62 HiLink yumDecNumber Number | |
63 HiLink yumCommand yumValue | |
64 HiLink yumFailoverMethod yumValue | |
65 HiLink yumPkgPolicy yumValue | |
66 HiLink yumValue Constant | |
67 HiLink yumURL Constant | |
68 HiLink yumSpecial Special | |
69 HiLink yumSection Keyword | |
70 HiLink yumMain Keyword | |
71 HiLink yumMainKeyword Type | |
72 HiLink yumServerKeyword Type | |
73 HiLink yumVariable Identifier | |
74 HiLink yumTitle Title | |
75 delcommand HiLink | |
76 endif | |
77 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}} | |
78 let b:current_syntax = "yum" | |
79 |