taskdata.vim fixes; ftdetect backlog.data as JSON

This commit is contained in:
lolilolicon 2014-07-11 19:49:30 +08:00 committed by Paul Beckingham
parent 722cc9b300
commit c92139389a
2 changed files with 3 additions and 1 deletions

View file

@ -12,6 +12,7 @@
" Taskwarrior data files
au BufRead,BufNewFile {pending,completed,undo}.data set filetype=taskdata
au BufRead,BufNewFile backlog.data set filetype=javascript
" Taskwarrior configuration file
au BufRead,BufNewFile .taskrc set filetype=taskrc

View file

@ -20,6 +20,7 @@ endif
" 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 \|---\)"
@ -27,7 +28,7 @@ syn match taskdataUndo "^\(old \|new \|---\)"
" 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., ",")