Vim Syntax Files (John Florian)
- Added the files on behalf of John Florian.
This commit is contained in:
@@ -1,33 +1,6 @@
|
||||
" Vim syntax file
|
||||
" Language: support for 'task 42 edit'
|
||||
" 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.
|
||||
@@ -38,33 +11,23 @@ elseif exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
syn match taskHeading "^\s*#\s*Name\s\+Editable details\s*$" contained
|
||||
syn match taskHeading "^\s*#\s*-\+\s\+-\+\s*$" contained
|
||||
syn match taskReadOnly "^\s*#\s*\(UU\)\?ID:.*$" contained
|
||||
syn match taskReadOnly "^\s*#\s*Status:.*$" contained
|
||||
syn match taskReadOnly "^\s*#\s*i\?Mask:.*$" contained
|
||||
syn match taskKey "^ *.\{-}:" nextgroup=taskString
|
||||
syn match taskComment "^\s*#.*$" contains=taskReadOnly,taskHeading
|
||||
syn match taskString ".*$" contained contains=@Spell
|
||||
syn match taskeditHeading "^\s*#\s*Name\s\+Editable details\s*$" contained
|
||||
syn match taskeditHeading "^\s*#\s*-\+\s\+-\+\s*$" contained
|
||||
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
|
||||
|
||||
|
||||
if version >= 508 || !exists("did_taskedit_syntax_inits")
|
||||
if version <= 508
|
||||
let did_taskedit_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 taskComment Comment
|
||||
HiLink taskHeading Function
|
||||
HiLink taskKey Statement
|
||||
HiLink taskReadOnly Special
|
||||
HiLink taskString String
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
" 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 taskeditReadOnly Special
|
||||
hi def link taskeditString String
|
||||
|
||||
let b:current_syntax = "taskedit"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user