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

53 lines
1.7 KiB
VimL
Raw Normal View History

2022-06-10 15:06:15 +00:00
" actodo syntax file.
2022-06-06 14:28:45 +00:00
" Anthony Perkins
if exists("b:current_syntax")
finish
endif
2022-06-10 15:06:15 +00:00
syntax region actodoName start="^\s*#" end="$"
syntax match actodoTodo /^\s*TODO:/
syntax match actodoWork /^\s*WORK:/
syntax match actodoDone /^\s*DONE:/
syntax region actodoUrl start="<.*:\/\/" end=">"
2022-06-10 15:10:15 +00:00
syntax match actodoTicket /##\d\+##/
2022-06-13 12:18:18 +00:00
syntax match actodoTicket /##\d\+##/
syntax match actodoDone /##\d\+:Closed##/
2022-06-06 15:06:38 +00:00
" ISO date.
2022-06-10 15:06:15 +00:00
syntax match actodoDate /\<\d\{4}-\d\{2}-\d\{2}\>/
2022-06-06 15:06:38 +00:00
" ISO time.
2022-06-10 15:06:15 +00:00
syntax match actodoDate /\<T\d\{2}:\d\{2}\>/
syntax match actodoDate /\<T\d\{2}:\d\{2}Z\>/
2022-06-06 15:06:38 +00:00
" ISO date and time.
2022-06-10 15:06:15 +00:00
syntax match actodoDate /\<\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}Z\>/
2022-06-06 14:28:45 +00:00
2022-06-13 08:54:09 +00:00
" Days of the week.
syntax match actodoDate /\<Monday\>/
syntax match actodoDate /\<Tuesday\>/
syntax match actodoDate /\<Wednesday\>/
syntax match actodoDate /\<Thursday\>/
syntax match actodoDate /\<Friday\>/
syntax match actodoDate /\<Saturday\>/
syntax match actodoDate /\<Sunday\>/
syntax match actodoDate /\<Mon\>/
syntax match actodoDate /\<Tue\>/
syntax match actodoDate /\<Wed\>/
syntax match actodoDate /\<Thu\>/
syntax match actodoDate /\<Fri\>/
syntax match actodoDate /\<Sat\>/
syntax match actodoDate /\<Sun\>/
2022-06-10 15:06:15 +00:00
highlight actodoName term=bold,underline cterm=bold,underline gui=bold,underline
highlight actodoTodo term=bold cterm=bold gui=bold ctermfg=1 guifg=#ff0000
highlight actodoWork term=bold cterm=bold gui=bold ctermfg=2 guifg=#00ff00
2022-06-13 12:08:12 +00:00
highlight actodoDone term=bold cterm=bold gui=bold ctermfg=7 guifg=#c0c0c0
2022-06-10 15:06:15 +00:00
highlight actodoDate term=bold cterm=bold gui=bold ctermfg=4 guifg=#0000ff
highlight actodoUrl ctermfg=4 guifg=#0000ff
highlight actodoTicket term=bold cterm=bold gui=bold ctermfg=6 guifg=#008080
2022-06-06 14:28:45 +00:00
let b:current_syntax = 'actodo'