34 lines
1 KiB
VimL
34 lines
1 KiB
VimL
" Project syntax file.
|
|
" Anthony Perkins
|
|
|
|
if exists("b:current_syntax")
|
|
finish
|
|
endif
|
|
|
|
syntax region prName start="^\s*#" end="$"
|
|
syntax match prName /^.\+\n=\+$/
|
|
syntax match prName /^.\+\n-\+$/
|
|
syntax match prTodo /^\s*TODO:/
|
|
syntax match prWork /^\s*WORK:/
|
|
syntax match prDone /^\s*DONE:/
|
|
syntax region prUrl start="<.*:\/\/" end=">"
|
|
|
|
" ISO date.
|
|
syntax match prDate /\<\d\{4}-\d\{2}-\d\{2}\>/
|
|
|
|
" ISO time.
|
|
syntax match prDate /\<T\d\{2}:\d\{2}\>/
|
|
syntax match prDate /\<T\d\{2}:\d\{2}Z\>/
|
|
|
|
" ISO date and time.
|
|
syntax match prDate /\<\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\>/
|
|
|
|
highlight prName term=bold,underline cterm=bold,underline gui=bold,underline
|
|
highlight prTodo term=bold cterm=bold gui=bold ctermfg=1 guifg=#ff0000
|
|
highlight prWork term=bold cterm=bold gui=bold ctermfg=2 guifg=#00ff00
|
|
highlight prDone term=bold cterm=bold gui=bold ctermfg=7 guifg=#808080
|
|
highlight prDate term=bold cterm=bold gui=bold ctermfg=4 guifg=#0000ff
|
|
highlight prUrl ctermfg=4 guifg=#0000ff
|
|
|
|
let b:current_syntax = 'actodo'
|