diff .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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.vim/syntax/yum.vim	Thu Jun 17 16:29:11 2010 +0000
@@ -0,0 +1,79 @@
+" Vim syntax file
+" Language: yum.conf - Yellowdog Updater Modified
+" Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
+" Last Change: 2003-11-17
+" URL: http://trific.ath.cx/Ftp/vim/syntax/yum.vim
+
+" Setup {{{
+" React to possibly already-defined syntax.
+" For version 5.x: Clear all syntax items unconditionally
+" For version 6.x: Quit when a syntax file was already loaded
+if version >= 600
+  if exists("b:current_syntax")
+    finish
+  endif
+else
+  syntax clear
+endif
+
+syn case match
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}
+" Comments {{{
+syn match yumComment "#.*$" contains=yumTodo
+syn keyword yumTodo TODO FIXME NOT XXX contained
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}
+" Sectioning and keywords {{{
+syn match yumSection "^\[[^] ]\+\]" contains=yumMain
+syn keyword yumMain main contained
+syn keyword yumMainKeyword cachedir debuglevel errorlevel logfile contained
+syn keyword yumMainKeyword tolerant pkgpolicy exclude exactarch contained
+syn keyword yumMainKeyword distroverpkg diskspacecheck retries contained
+syn keyword yumMainKeyword installonlypkgs assumeyes commands contained
+" deprecated: syn keyword yumMainKeyword kernelpkgnames contained
+syn keyword yumServerKeyword name nextgroup=yumTitle contained
+syn keyword yumServerKeyword baseurl gpgcheck failovermethod exclude contained
+syn match yumBOL "^" nextgroup=yumComment,yumSection,yumMainKeyword,yumServerKeyword skipwhite
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}
+" Values and specials {{{
+syn match yumTitle ".*" contained contains=yumVariable
+syn keyword yumPkgPolicy newest last
+syn keyword yumCommand update upgrade install info remove list clean provides
+syn keyword yumCommand search groupinstall groupupdate grouplist
+syn match yumCommand "\<check-update\>"
+syn keyword yumFailoverMethod roundrobin priority
+syn match yumVariable "\$\(releasever\|arch\|basearch\|YUM[0-9]\)"
+syn match yumSpecial "[*?]"
+syn match yumDecNumber "\<\d\+\>"
+syn match yumURL "\<\(http\|ftp\|file\)://[^ ]\+" contains=yumVariable
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}
+" Define the default highlighting {{{
+" For version 5.7 and earlier: Only when not done already
+" For version 5.8 and later: Only when an item doesn't have highlighting yet
+if version >= 508 || !exists("did_yum_syntax_inits")
+  if version < 508
+    let did_yum_syntax_inits = 1
+    command -nargs=+ HiLink hi link <args>
+  else
+    command -nargs=+ HiLink hi def link <args>
+  endif
+
+  HiLink yumComment           Comment
+  HiLink yumTodo              Todo
+  HiLink yumDecNumber         Number
+  HiLink yumCommand           yumValue
+  HiLink yumFailoverMethod    yumValue
+  HiLink yumPkgPolicy         yumValue
+  HiLink yumValue             Constant
+  HiLink yumURL               Constant
+  HiLink yumSpecial           Special
+  HiLink yumSection           Keyword
+  HiLink yumMain              Keyword
+  HiLink yumMainKeyword       Type
+  HiLink yumServerKeyword     Type
+  HiLink yumVariable          Identifier
+  HiLink yumTitle             Title
+  delcommand HiLink
+endif
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" }}}
+let b:current_syntax = "yum"
+