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
|
|
|
|
|
2023-03-27 22:19:20 +00:00
|
|
|
syntax match actodoName /^#\+\s\+.\+/
|
2022-06-10 15:06:15 +00:00
|
|
|
syntax match actodoTodo /^\s*TODO:/
|
2022-10-06 11:48:11 +00:00
|
|
|
syntax match actodoWait /^\s*WAIT:/
|
2022-06-10 15:06:15 +00:00
|
|
|
syntax match actodoWork /^\s*WORK:/
|
|
|
|
syntax match actodoDone /^\s*DONE:/
|
2022-06-13 12:39:38 +00:00
|
|
|
syntax match actodoUrl /<.*:\/\/.\+>/
|
2023-03-27 22:24:53 +00:00
|
|
|
syntax match actodoTicket /##\w\+##/
|
|
|
|
syntax match actodoDone /##\w\+:Closed##/
|
2022-09-26 09:28:59 +00:00
|
|
|
syntax match actodoTag /\v#\a(\w)+/
|
2022-06-06 15:06:38 +00:00
|
|
|
|
|
|
|
" ISO date.
|
2022-07-19 15:38:38 +00:00
|
|
|
syntax match actodoDate /\<\d\{4}-\d\{2}-\d\{2}\([T/]\S*\)*\>/
|
2022-06-06 15:06:38 +00:00
|
|
|
|
|
|
|
" ISO time.
|
2023-03-29 14:06:32 +00:00
|
|
|
syntax match actodoDate /\<T\d\{2}:\d\{2}\(\/\S*\)*\>/
|
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-07-27 15:30:13 +00:00
|
|
|
" Importance.
|
|
|
|
syntax match actodoImportant /\[!\]/
|
|
|
|
syntax match actodoImportant /\[!!\]/
|
|
|
|
syntax match actodoImportant /\[!!!\]/
|
|
|
|
|
2022-06-10 15:06:15 +00:00
|
|
|
highlight actodoName term=bold,underline cterm=bold,underline gui=bold,underline
|
2022-06-13 12:54:44 +00:00
|
|
|
highlight actodoTodo term=bold cterm=bold gui=bold ctermfg=red guifg=red
|
2022-10-10 07:34:55 +00:00
|
|
|
highlight actodoWait term=bold cterm=bold gui=bold ctermfg=DarkRed guifg=purple
|
2022-06-13 12:54:44 +00:00
|
|
|
highlight actodoWork term=bold cterm=bold gui=bold ctermfg=green guifg=green
|
|
|
|
highlight actodoTicket term=bold cterm=bold gui=bold ctermfg=DarkCyan guifg=DarkCyan
|
2022-06-22 11:06:14 +00:00
|
|
|
if &background ==# 'light'
|
|
|
|
highlight actodoDone term=bold cterm=bold gui=bold ctermfg=LightGray guifg=LightGray
|
2022-06-22 11:36:55 +00:00
|
|
|
highlight actodoUrl ctermfg=blue guifg=blue
|
|
|
|
highlight actodoDate term=bold cterm=bold gui=bold ctermfg=blue guifg=blue
|
2022-07-27 15:30:13 +00:00
|
|
|
highlight actodoImportant term=bold cterm=bold gui=bold ctermfg=orange guifg=orange
|
2022-09-26 09:28:59 +00:00
|
|
|
highlight actodoTag term=bold cterm=bold gui=bold ctermfg=orange guifg=orange
|
2022-06-22 11:06:14 +00:00
|
|
|
else
|
2022-06-22 11:29:55 +00:00
|
|
|
highlight actodoDone term=bold cterm=bold gui=bold ctermfg=DarkGray guifg=DarkGray
|
2022-06-22 11:36:55 +00:00
|
|
|
highlight actodoUrl ctermfg=cyan guifg=cyan
|
|
|
|
highlight actodoDate term=bold cterm=bold gui=bold ctermfg=cyan guifg=cyan
|
2022-07-27 15:30:13 +00:00
|
|
|
highlight actodoImportant term=bold cterm=bold gui=bold ctermfg=yellow guifg=yellow
|
2022-09-26 09:28:59 +00:00
|
|
|
highlight actodoTag term=bold cterm=bold gui=bold ctermfg=yellow guifg=yellow
|
2022-06-22 11:06:14 +00:00
|
|
|
endif
|
2022-06-06 14:28:45 +00:00
|
|
|
|
2022-06-07 10:43:44 +00:00
|
|
|
let b:current_syntax = 'actodo'
|