nvim/syntax/pr.vim

23 lines
755 B
VimL
Raw Normal View History

2022-06-06 14:28:45 +00:00
" 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 match prDate /\<\d\{4}-\d\{2}-\d\{2}\>/
hi prName term=bold cterm=bold gui=bold
hi prTodo term=bold,underline cterm=bold,underline gui=bold,underline ctermfg=1 guifg=#ff0000
2022-06-06 14:45:09 +00:00
hi prWork term=bold,underline cterm=bold,underline gui=bold,underline ctermfg=2 guifg=#00ff00
2022-06-06 14:42:09 +00:00
hi prDone term=bold,underline cterm=bold,underline gui=bold,underline ctermfg=7 guifg=#808080
hi prDate term=bold cterm=bold gui=bold ctermfg=4 guifg=#0000ff
2022-06-06 14:28:45 +00:00
let b:current_syntax = 'pr'