From 17d9d0541f445a8a8871c64022726d6d2363877d Mon Sep 17 00:00:00 2001 From: Will Woods Date: Tue, 13 Sep 2011 11:29:10 -0400 Subject: yumconf: add hilighting for color* keys --- syntax/yumconf.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/syntax/yumconf.vim b/syntax/yumconf.vim index 5c07380..cae30f9 100644 --- a/syntax/yumconf.vim +++ b/syntax/yumconf.vim @@ -72,6 +72,15 @@ syn keyword yumMultilibPolicy contained all best syn match mainKey contained /^group_package_types\s*=\s*/ nextgroup=yumGroupTypeList syn region yumGroupTypeList contained start=/./ end=/\n\S/me=e-2 contains=yumGroupType,yumError syn keyword yumGroupType contained required optional mandatory +syn match mainKey contained /^color\s*=\s*/ nextgroup=yumColorMode,yumError +syn keyword yumColorMode contained always auto never +syn match mainKey contained /^color_list_installed_\%(older\|newer\|reinstall\|extra\)\s*=s*/ nextgroup=yumColor +syn match mainKey contained /^color_list_available_\%(upgrade\|downgrade\|install\|reinstall\)\s*=s*/ nextgroup=yumColor +syn match mainKey contained /^color_update_\%(local\|remote\|installed\)\s*=s*/ nextgroup=yumColor +syn match mainKey contained /^color_search_match\s*=s*/ nextgroup=yumColor +syn match yumColor contained /.*$/ contains=yumColorWords,yumColorSyms,yumError +syn keyword yumColorWords contained bold blink dim reverse underline black red green yellow blue magenta cyan white +syn match yumColorSyms contained /\%(,\|\