" Vim syntax file " Language: Yum config " Filenames: *.repo, /etc/yum.conf " Maintainer: Will Woods " Last Change: Sep 9, 2011 " Version: 0.1 if exists("b:current_syntax") finish endif syn case match syn sync fromstart "----- basic data types and patterns ---------------------- syn match yumError contained /\S.*/ syn match yumBadLine /^[^=:]\+$/ syn match yumVar /\$\%(basearch\|releasever\|arch\|uuid\|YUM\d\)/ syn match yumOtherVar /\$\i\+/ syn match yumComment /^[#;].*$/ containedin=ALL " single items syn match yumItem contained /\S\+/ skipwhite nextgroup=yumError syn keyword yumBool contained 0 1 yes no true false True False skipwhite nextgroup=yumError syn match yumInt contained /\d\+/ skipwhite nextgroup=yumError syn match yumDuration contained /\%(\d\+[dhm]\?\|never\)/ skipwhite nextgroup=yumError " these things could be in lists syn match yumURL contained '\<\%(file\|https\=\|ftp\|media\)://[^ ,]\+' contains=yumVar syn match yumFile contained /\%(\