nvim/pack/acp/start/vim-actodo/syntax/actodo.vim

35 lines
853 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:/
2022-06-06 17:11:37 +00:00
syntax region prUrl start="<.*:\/\/" end=">"
2022-06-06 15:06:38 +00:00
" ISO date.
2022-06-06 14:28:45 +00:00
syntax match prDate /\<\d\{4}-\d\{2}-\d\{2}\>/
2022-06-06 15:06:38 +00:00
" 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\>/
2022-06-06 14:28:45 +00:00
2022-06-08 08:04:34 +00:00
highlight link prName Title
highlight link prTodo Exception
highlight link prWork Conditional
highlight link prDone Comment
highlight link prDate Number
highlight link prUrl String
2022-06-06 14:28:45 +00:00
let b:current_syntax = 'actodo'