Vim Syntax Files (John Florian)

- Added the files on behalf of John Florian.
This commit is contained in:
Paul Beckingham 2009-07-06 00:34:47 -04:00
parent 51ad77e952
commit 8af0953b63
4 changed files with 28 additions and 135 deletions

View file

@ -1,33 +1,6 @@
" Vim syntax file
" Language: task data
" Maintainer: John Florian <jflorian@doubledog.org>
"
"
" Copyright 2009 John Florian
" All rights reserved.
"
" This file is part of the task project.
"
" This program is free software; you can redistribute it and/or modify it under
" the terms of the GNU General Public License as published by the Free Software
" Foundation; either version 2 of the License, or (at your option) any later
" version.
"
" This program is distributed in the hope that it will be useful, but WITHOUT
" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
" FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
" details.
"
" You should have received a copy of the GNU General Public License along with
" this program; if not, write to the
"
" Free Software Foundation, Inc.,
" 51 Franklin Street, Fifth Floor,
" Boston, MA
" 02110-1301
" USA
"
"
" For version 5.x: Clear all syntax items.
@ -39,39 +12,27 @@ elseif exists("b:current_syntax")
endif
" Key Names for values.
syn keyword taskKey description due end entry imask mask parent priority
syn keyword taskKey project recur start status tags uuid
syn match taskKey "annotation_\d\+"
syn keyword taskdataKey description due end entry imask mask parent
syn keyword taskdataKey priority project recur start status tags uuid
syn match taskdataKey "annotation_\d\+"
" Values associated with key names.
"
" Strings
syn region taskString matchgroup=Normal start=+"+ end=+"+
\ contains=taskEncoded,taskUUID,@Spell
syn region taskdataString matchgroup=Normal start=+"+ end=+"+
\ contains=taskdataEncoded,taskdataUUID,@Spell
"
" Special Embedded Characters (e.g., "&comma;")
syn match taskEncoded "&\a\+;" contained
syn match taskdataEncoded "&\a\+;" contained
" UUIDs
syn match taskUUID "\x\{8}-\(\x\{4}-\)\{3}\x\{12}" contained
syn match taskdataUUID "\x\{8}-\(\x\{4}-\)\{3}\x\{12}" contained
if version >= 508 || !exists("did_taskdata_syntax_inits")
if version <= 508
let did_taskdata_syntax_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
" The default methods for highlighting. Can be overridden later.
HiLink taskEncoded Function
HiLink taskKey Statement
HiLink taskOperator Operator
HiLink taskString String
HiLink taskUUID Special
delcommand HiLink
endif
" The default methods for highlighting. Can be overridden later.
hi def link taskdataEncoded Function
hi def link taskdataKey Statement
hi def link taskdataString String
hi def link taskdataUUID Special
let b:current_syntax = "taskdata"