Update vim-actodo
This commit is contained in:
parent
9e2ee2b8de
commit
e35cb02d07
1 changed files with 19 additions and 17 deletions
|
@ -1,32 +1,34 @@
|
||||||
" Project syntax file.
|
" actodo syntax file.
|
||||||
" Anthony Perkins
|
" Anthony Perkins
|
||||||
|
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
syntax region prName start="^\s*#" end="$"
|
syntax region actodoName start="^\s*#" end="$"
|
||||||
syntax match prTodo /^\s*TODO:/
|
syntax match actodoTodo /^\s*TODO:/
|
||||||
syntax match prWork /^\s*WORK:/
|
syntax match actodoWork /^\s*WORK:/
|
||||||
syntax match prDone /^\s*DONE:/
|
syntax match actodoDone /^\s*DONE:/
|
||||||
syntax region prUrl start="<.*:\/\/" end=">"
|
syntax region actodoUrl start="<.*:\/\/" end=">"
|
||||||
|
syntax match actodoTicket /#\d\+#/
|
||||||
|
|
||||||
" ISO date.
|
" ISO date.
|
||||||
syntax match prDate /\<\d\{4}-\d\{2}-\d\{2}\>/
|
syntax match actodoDate /\<\d\{4}-\d\{2}-\d\{2}\>/
|
||||||
|
|
||||||
" ISO time.
|
" ISO time.
|
||||||
syntax match prDate /\<T\d\{2}:\d\{2}\>/
|
syntax match actodoDate /\<T\d\{2}:\d\{2}\>/
|
||||||
syntax match prDate /\<T\d\{2}:\d\{2}Z\>/
|
syntax match actodoDate /\<T\d\{2}:\d\{2}Z\>/
|
||||||
|
|
||||||
" ISO date and time.
|
" ISO date and time.
|
||||||
syntax match prDate /\<\d\{4}-\d\{2}-\d\{2}T\d\{2}:\d\{2}\>/
|
syntax match actodoDate /\<\d\{4}-\d\{2}-\d\{2}T\d\{2}:\d\{2}\>/
|
||||||
syntax match prDate /\<\d\{4}-\d\{2}-\d\{2}T\d\{2}:\d\{2}Z\>/
|
syntax match actodoDate /\<\d\{4}-\d\{2}-\d\{2}T\d\{2}:\d\{2}Z\>/
|
||||||
|
|
||||||
highlight prName term=bold,underline cterm=bold,underline gui=bold,underline
|
highlight actodoName term=bold,underline cterm=bold,underline gui=bold,underline
|
||||||
highlight prTodo term=bold cterm=bold gui=bold ctermfg=1 guifg=#ff0000
|
highlight actodoTodo term=bold cterm=bold gui=bold ctermfg=1 guifg=#ff0000
|
||||||
highlight prWork term=bold cterm=bold gui=bold ctermfg=2 guifg=#00ff00
|
highlight actodoWork term=bold cterm=bold gui=bold ctermfg=2 guifg=#00ff00
|
||||||
highlight prDone term=bold cterm=bold gui=bold ctermfg=7 guifg=#808080
|
highlight actodoDone term=bold cterm=bold gui=bold ctermfg=7 guifg=#808080
|
||||||
highlight prDate term=bold cterm=bold gui=bold ctermfg=4 guifg=#0000ff
|
highlight actodoDate term=bold cterm=bold gui=bold ctermfg=4 guifg=#0000ff
|
||||||
highlight prUrl ctermfg=4 guifg=#0000ff
|
highlight actodoUrl ctermfg=4 guifg=#0000ff
|
||||||
|
highlight actodoTicket term=bold cterm=bold gui=bold ctermfg=6 guifg=#008080
|
||||||
|
|
||||||
let b:current_syntax = 'actodo'
|
let b:current_syntax = 'actodo'
|
||||||
|
|
Loading…
Reference in a new issue