Patch attached. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
--- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
diff -uNr a/runtime/filetype.vim b/runtime/filetype.vim --- a/runtime/filetype.vim 2014-07-11 13:17:50.281190717 +0000 +++ b/runtime/filetype.vim 2014-07-11 13:27:48.472771369 +0000 @@ -2137,7 +2137,9 @@ " Task au BufRead,BufNewFile {pending,completed,undo}.data setf taskdata -au BufRead,BufNewFile *.task setf taskedit +au BufRead,BufNewFile backlog.data setf javascript +au BufRead,BufNewFile *.task setf taskedit +au BufRead,BufNewFile .taskrc setf taskrc " Tcl (JACL too) au BufNewFile,BufRead *.tcl,*.tk,*.itcl,*.itk,*.jacl setf tcl diff -uNr a/runtime/synmenu.vim b/runtime/synmenu.vim --- a/runtime/synmenu.vim 2014-07-11 13:18:00.801042654 +0000 +++ b/runtime/synmenu.vim 2014-07-11 13:26:31.613853133 +0000 @@ -526,6 +526,7 @@ an 50.130.150 &Syntax.T.Tar\ listing :cal SetSyn("tar")<CR> an 50.130.160 &Syntax.T.Task\ data :cal SetSyn("taskdata")<CR> an 50.130.170 &Syntax.T.Task\ 42\ edit :cal SetSyn("taskedit")<CR> +an 50.130.170 &Syntax.T.Task\ RC :cal SetSyn("taskrc")<CR> an 50.130.180 &Syntax.T.Tcl/Tk :cal SetSyn("tcl")<CR> an 50.130.190 &Syntax.T.TealInfo :cal SetSyn("tli")<CR> an 50.130.200 &Syntax.T.Telix\ Salt :cal SetSyn("tsalt")<CR> diff -uNr a/runtime/syntax/taskdata.vim b/runtime/syntax/taskdata.vim --- a/runtime/syntax/taskdata.vim 2014-07-11 13:17:18.001645041 +0000 +++ b/runtime/syntax/taskdata.vim 2014-07-11 13:51:05.286445013 +0000 @@ -1,7 +1,8 @@ " Vim syntax file " Language: task data " Maintainer: John Florian <jflor...@doubledog.org> -" Updated: Wed Jul 8 19:46:20 EDT 2009 +" Contributors: lolilolicon <loliloli...@gmail.com> +" Updated: Fri Jul 11 00:00:00 UTC 2014 " For version 5.x: Clear all syntax items. @@ -17,6 +18,7 @@ " Key Names for values. syn keyword taskdataKey description due end entry imask mask parent syn keyword taskdataKey priority project recur start status tags uuid +syn keyword taskdataKey modified scheduled until wait syn match taskdataKey "annotation_\d\+" syn match taskdataUndo "^time.*$" syn match taskdataUndo "^\(old \|new \|---\)" @@ -24,7 +26,7 @@ " Values associated with key names. " " Strings -syn region taskdataString matchgroup=Normal start=+"+ end=+"+ +syn region taskdataString matchgroup=Normal start=+"+ skip=+\\"+ end=+"+ \ contains=taskdataEncoded,taskdataUUID,@Spell " " Special Embedded Characters (e.g., ",") diff -uNr a/runtime/syntax/taskedit.vim b/runtime/syntax/taskedit.vim --- a/runtime/syntax/taskedit.vim 2014-07-11 13:17:27.458178611 +0000 +++ b/runtime/syntax/taskedit.vim 2014-07-11 13:51:05.289778299 +0000 @@ -1,7 +1,8 @@ " Vim syntax file " Language: support for 'task 42 edit' " Maintainer: John Florian <jflor...@doubledog.org> -" Updated: Wed Jul 8 19:46:32 EDT 2009 +" Contributors: lolilolicon <loliloli...@gmail.com> +" Updated: Fri Jul 11 00:00:00 UTC 2014 " For version 5.x: Clear all syntax items. @@ -19,18 +20,16 @@ syn match taskeditReadOnly "^\s*#\s*\(UU\)\?ID:.*$" contained syn match taskeditReadOnly "^\s*#\s*Status:.*$" contained syn match taskeditReadOnly "^\s*#\s*i\?Mask:.*$" contained -syn match taskeditKey "^ *.\{-}:" nextgroup=taskeditString -syn match taskeditComment "^\s*#.*$" - \ contains=taskeditReadOnly,taskeditHeading -syn match taskeditString ".*$" contained contains=@Spell - +syn region taskeditKeyValue matchgroup=taskeditKey start="^ \S.\{-}:" skip="^\s*#" end="^ \S.\{-}:"me=s-1,he=s-1,re=s-1 contains=taskeditKey,taskeditValue,taskeditComment +syn match taskeditValue ".*$" contained contains=@Spell +syn match taskeditComment "^\s*#.*$" contains=taskeditReadOnly,taskeditHeading " The default methods for highlighting. Can be overridden later. hi def link taskeditComment Comment hi def link taskeditHeading Function -hi def link taskeditKey Statement +hi def link taskeditKey Statement hi def link taskeditReadOnly Special -hi def link taskeditString String +hi def link taskeditValue String let b:current_syntax = "taskedit" diff -uNr a/runtime/syntax/taskrc.vim b/runtime/syntax/taskrc.vim --- a/runtime/syntax/taskrc.vim 1970-01-01 00:00:00.000000000 +0000 +++ b/runtime/syntax/taskrc.vim 2014-07-11 13:51:05.316444590 +0000 @@ -0,0 +1,164 @@ +" Vim syntax file +" Language: taskrc +" Maintainer: John Florian <jflor...@doubledog.org> +" Contributors: lolilolicon <loliloli...@gmail.com> +" Updated: Fri Jul 11 00:00:00 UTC 2014 + + +" For version 5.x: Clear all syntax items. +" For version 6.x: Quit when a syntax file was already loaded. +if version < 600 + syntax clear +elseif exists("b:current_syntax") + finish +endif +let s:keepcpo= &cpo +set cpo&vim + +syn match taskrcVal ".\{-}$" contains=taskrcComment +syn match taskrcEqual "=" +syn match taskrcKey "^\s*.\{-}="he=e-1 contains=taskrcEqual + +syn match taskrcGoodKey '^\s*\V_forcecolor='he=e-1 +syn match taskrcGoodKey '^\s*\Vabbreviation.minimum='he=e-1 +syn match taskrcGoodKey '^\s*\Vactive.indicator='he=e-1 +syn match taskrcGoodKey '^\s*\Valias.\S\{-}='he=e-1 +syn match taskrcGoodKey '^\s*\Vavoidlastcolumn='he=e-1 +syn match taskrcGoodKey '^\s*\Vbulk='he=e-1 +syn match taskrcGoodKey '^\s*\Vburndown.bias='he=e-1 +syn match taskrcGoodKey '^\s*\Vcalendar.details='he=e-1 +syn match taskrcGoodKey '^\s*\Vcalendar.details.report='he=e-1 +syn match taskrcGoodKey '^\s*\Vcalendar.holidays='he=e-1 +syn match taskrcGoodKey '^\s*\Vcalendar.legend='he=e-1 +syn match taskrcGoodKey '^\s*\Vcalendar.offset='he=e-1 +syn match taskrcGoodKey '^\s*\Vcalendar.offset.value='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.active='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.alternate='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.blocked='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.blocking='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.burndown.done='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.burndown.pending='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.burndown.started='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.calendar.due='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.calendar.due.today='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.calendar.holiday='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.calendar.overdue='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.calendar.today='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.calendar.weekend='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.calendar.weeknumber='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.debug='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.due='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.due.today='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.error='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.footnote='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.header='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.history.add='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.history.delete='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.history.done='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.overdue='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.pri.H='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.pri.L='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.pri.M='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.pri.none='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.recurring='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.scheduled='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.summary.background='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.summary.bar='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.sync.added='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.sync.changed='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.sync.rejected='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.tagged='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.undo.after='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.undo.before='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.until='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolor.\(tag\|project\|keyword\|uda\).\S\{-}='he=e-1 +syn match taskrcGoodKey '^\s*\Vcolumn.padding='he=e-1 +syn match taskrcGoodKey '^\s*\Vcomplete.all.tags='he=e-1 +syn match taskrcGoodKey '^\s*\Vconfirmation='he=e-1 +syn match taskrcGoodKey '^\s*\Vdata.location='he=e-1 +syn match taskrcGoodKey '^\s*\Vdateformat='he=e-1 +syn match taskrcGoodKey '^\s*\Vdateformat.annotation='he=e-1 +syn match taskrcGoodKey '^\s*\Vdateformat.edit='he=e-1 +syn match taskrcGoodKey '^\s*\Vdateformat.holiday='he=e-1 +syn match taskrcGoodKey '^\s*\Vdateformat.info='he=e-1 +syn match taskrcGoodKey '^\s*\Vdateformat.report='he=e-1 +syn match taskrcGoodKey '^\s*\Vdebug='he=e-1 +syn match taskrcGoodKey '^\s*\Vdebug.tls='he=e-1 +syn match taskrcGoodKey '^\s*\Vdefault.command='he=e-1 +syn match taskrcGoodKey '^\s*\Vdefault.due='he=e-1 +syn match taskrcGoodKey '^\s*\Vdefault.priority='he=e-1 +syn match taskrcGoodKey '^\s*\Vdefault.project='he=e-1 +syn match taskrcGoodKey '^\s*\Vdefaultheight='he=e-1 +syn match taskrcGoodKey '^\s*\Vdefaultwidth='he=e-1 +syn match taskrcGoodKey '^\s*\Vdependency.confirmation='he=e-1 +syn match taskrcGoodKey '^\s*\Vdependency.indicator='he=e-1 +syn match taskrcGoodKey '^\s*\Vdependency.reminder='he=e-1 +syn match taskrcGoodKey '^\s*\Vdetection='he=e-1 +syn match taskrcGoodKey '^\s*\Vdisplayweeknumber='he=e-1 +syn match taskrcGoodKey '^\s*\Vdom='he=e-1 +syn match taskrcGoodKey '^\s*\Vdue='he=e-1 +syn match taskrcGoodKey '^\s*\Vexit.on.missing.db='he=e-1 +syn match taskrcGoodKey '^\s*\Vexpressions='he=e-1 +syn match taskrcGoodKey '^\s*\Vextensions='he=e-1 +syn match taskrcGoodKey '^\s*\Vfontunderline='he=e-1 +syn match taskrcGoodKey '^\s*\Vgc='he=e-1 +syn match taskrcGoodKey '^\s*\Vhyphenate='he=e-1 +syn match taskrcGoodKey '^\s*\Vindent.annotation='he=e-1 +syn match taskrcGoodKey '^\s*\Vindent.report='he=e-1 +syn match taskrcGoodKey '^\s*\Vjournal.info='he=e-1 +syn match taskrcGoodKey '^\s*\Vjournal.time='he=e-1 +syn match taskrcGoodKey '^\s*\Vjournal.time.start.annotation='he=e-1 +syn match taskrcGoodKey '^\s*\Vjournal.time.stop.annotation='he=e-1 +syn match taskrcGoodKey '^\s*\Vjson.array='he=e-1 +syn match taskrcGoodKey '^\s*\Vlist.all.projects='he=e-1 +syn match taskrcGoodKey '^\s*\Vlist.all.tags='he=e-1 +syn match taskrcGoodKey '^\s*\Vlocale='he=e-1 +syn match taskrcGoodKey '^\s*\Vlocking='he=e-1 +syn match taskrcGoodKey '^\s*\Vnag='he=e-1 +syn match taskrcGoodKey '^\s*\Vprint.empty.columns='he=e-1 +syn match taskrcGoodKey '^\s*\Vrecurrence.indicator='he=e-1 +syn match taskrcGoodKey '^\s*\Vrecurrence.limit='he=e-1 +syn match taskrcGoodKey '^\s*\Vregex='he=e-1 +syn match taskrcGoodKey '^\s*\Vreport.\S\{-}.\(description\|columns\|labels\|sort\|filter\|dateformat\|annotations\)='he=e-1 +syn match taskrcGoodKey '^\s*\Vreserved.lines='he=e-1 +syn match taskrcGoodKey '^\s*\Vrow.padding='he=e-1 +syn match taskrcGoodKey '^\s*\Vrule.precedence.color='he=e-1 +syn match taskrcGoodKey '^\s*\Vsearch.case.sensitive='he=e-1 +syn match taskrcGoodKey '^\s*\Vshell.prompt='he=e-1 +syn match taskrcGoodKey '^\s*\Vtag.indicator='he=e-1 +syn match taskrcGoodKey '^\s*\Vtaskd.\(server\|credentials\|certificate\|key\|ca\|trust\|ciphers\)='he=e-1 +syn match taskrcGoodKey '^\s*\Vuda.\S\{-}.\(default\|type\|label\|values\)='he=e-1 +syn match taskrcGoodKey '^\s*\Vundo.style='he=e-1 +syn match taskrcGoodKey '^\s*\Vurgency.active.coefficient='he=e-1 +syn match taskrcGoodKey '^\s*\Vurgency.age.coefficient='he=e-1 +syn match taskrcGoodKey '^\s*\Vurgency.age.max='he=e-1 +syn match taskrcGoodKey '^\s*\Vurgency.annotations.coefficient='he=e-1 +syn match taskrcGoodKey '^\s*\Vurgency.blocked.coefficient='he=e-1 +syn match taskrcGoodKey '^\s*\Vurgency.blocking.coefficient='he=e-1 +syn match taskrcGoodKey '^\s*\Vurgency.due.coefficient='he=e-1 +syn match taskrcGoodKey '^\s*\Vurgency.inherit.coefficient='he=e-1 +syn match taskrcGoodKey '^\s*\Vurgency.next.coefficient='he=e-1 +syn match taskrcGoodKey '^\s*\Vurgency.priority.coefficient='he=e-1 +syn match taskrcGoodKey '^\s*\Vurgency.project.coefficient='he=e-1 +syn match taskrcGoodKey '^\s*\Vurgency.scheduled.coefficient='he=e-1 +syn match taskrcGoodKey '^\s*\Vurgency.tags.coefficient='he=e-1 +syn match taskrcGoodKey '^\s*\Vurgency.uda.\S\{-}.coefficient='he=e-1 +syn match taskrcGoodKey '^\s*\Vurgency.waiting.coefficient='he=e-1 +syn match taskrcGoodKey '^\s*\Vverbose='he=e-1 +syn match taskrcGoodKey '^\s*\Vweekstart='he=e-1 +syn match taskrcGoodKey '^\s*\Vxterm.title='he=e-1 + +syn match taskrcComment "#.*$" +syn match taskrcInclude '^\s*include\s'he=e-1 + +hi def link taskrcComment Comment +hi def link taskrcKey Statement +hi def link taskrcVal String +hi def link taskrcGoodKey Function +hi def link taskrcInclude Include + +let b:current_syntax = "taskrc" + +let &cpo = s:keepcpo +unlet s:keepcpo