From 3341f743746ed0d537ef27f7a5af0c9b70dba176 Mon Sep 17 00:00:00 2001 From: John Florian Date: Tue, 2 Feb 2010 20:52:38 -0500 Subject: [PATCH] Enhancement - improved vim highlighting of .taskrc - Added many new keywords to bring up to date with current feature set. - Fixed incorrect highlighting of 'due' in report definitions. --- scripts/vim/syntax/taskrc.vim | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/vim/syntax/taskrc.vim b/scripts/vim/syntax/taskrc.vim index 26536e34b..89e905890 100644 --- a/scripts/vim/syntax/taskrc.vim +++ b/scripts/vim/syntax/taskrc.vim @@ -21,14 +21,21 @@ syn match taskrcVal ".\{-}$" contains=taskrcComment syn match taskrcEqual "=" syn match taskrcKey "^\s*.\{-}="he=e-1 contains=taskrcEqual -syn keyword taskrcGoodKey locking curses confirmation next bulk nag dateformat weekstart displayweeknumber due defaultwidth editor monthsperline +syn keyword taskrcGoodKey locking curses confirmation next bulk nag dateformat weekstart displayweeknumber defaultwidth editor monthsperline annotations _forcecolor blanklines debug hooks fontunderline -syn match taskrcGoodKey "color\(\.\(overdue\|due\|pri\.\([HML]\|none\)\|active\|tagged\|recurring\|header\|footnote\|\(\(tag\|project\|keyword\)\.\S\{-}\)\)\)\?="he=e-1 +syn match taskrcGoodKey "alias\.\S\{-}="he=e-1 +syn match taskrcGoodKey "calendar\.\(legend\|holidays\|details\(report\)\?\)" +syn match taskrcGoodKey "color\(\.\(alternate\|overdue\|due\|pri\.\([HML]\|none\)\|active\|tagged\|recurring\|header\|footnote\|\(\(tag\|project\|keyword\)\.\S\{-}\)\|debug\|\(calendar\.\(today\|due\|overdue\|weekend\|holiday\|weeknumber\)\)\)\)\?="he=e-1 +syn match taskrcGoodKey "complete\.all\.\(projects\|tags\)" syn match taskrcGoodKey "data\.location" syn match taskrcGoodKey "default\.\(command\|project\|priority\)" +syn match taskrcGoodKey "due="he=e-1 syn match taskrcGoodKey "echo\.command" -syn match taskrcGoodKey "report\.\S\{-}\.\(description\|columns\|labels\|sort\|filter\)="he=e-1 +syn match taskrcGoodKey "import\.synonym\.\(bg\|description\|due\|end\|entry\|fg\|id\|priority\|project\|recur\|start\|status\|tags\|uuid\)" +syn match taskrcGoodKey "report\.\S\{-}\.\(description\|columns\|labels\|sort\|filter\|dateformat\|annotations\)="he=e-1 +syn match taskrcGoodKey "search\.case\.sensitive" syn match taskrcGoodKey "shadow\.\(file\|command\|notify\)" +syn match taskrcGoodKey "shell\.prompt" syn match taskrcComment "#.*$"