mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 00:05:10 +01:00
99 lines
3.3 KiB
VimL
99 lines
3.3 KiB
VimL
if exists("b:current_syntax")
|
|
finish
|
|
endif
|
|
|
|
|
|
" Keywords that we want to emphasize
|
|
"syntax keyword todoKeyword todo done important
|
|
"syntax keyword todoKeyword whoa free
|
|
"highlight link todoKeyword Keyword
|
|
|
|
|
|
" Remarks about the day
|
|
syntax match todoDayKeyword "thuiswerken"
|
|
syntax match todoDayKeyword "Thuis"
|
|
syntax match todoDayKeyword "Thuiswerken"
|
|
syntax match todoDayKeyword "Hackathon"
|
|
syntax match todoDayKeyword "hackathon"
|
|
syntax match todoDayKeyword "papadag"
|
|
syntax match todoDayKeyword "vrije dag"
|
|
syntax match todoDayKeyword "vrij"
|
|
syntax match todoDayKeyword "Vrij"
|
|
syntax match todoDayKeyword "koningsdag"
|
|
"syntax match todoDayKeyword "ill"
|
|
syntax match todoDayKeyword "ziek"
|
|
syntax match todoDayKeyword "ziekig"
|
|
highlight todoDayKeyword ctermfg=116 guifg=#8cd0d3
|
|
|
|
|
|
" Inline commenting
|
|
syntax match todoComment "\v#.*$"
|
|
highlight link todoComment Comment
|
|
|
|
|
|
" Heading (day) delimiters
|
|
syntax region todoDay start=/\v\=\=\ / skip=/\v\\./ end=/\v\ \=\=\=\=\=\=/
|
|
|
|
highlight link todoDay Delimiter
|
|
|
|
|
|
" Show -scratched out- parts of a line as darker text (Delimiter colour)
|
|
syntax region scratchThis start=/\v --/ skip=/\v\\./ end=/\v--\ / oneline
|
|
|
|
highlight scratchThis ctermfg=Grey guifg=#666666
|
|
|
|
|
|
" Task statuses
|
|
syntax match todoNote "\v^\s{-}n .*$" nextgroup=todoNote
|
|
syntax match todoNote "\v^ .*$" nextgroup=todoNote
|
|
highlight todoNote ctermfg=Grey guifg=#666666
|
|
|
|
syntax match todoStatusDone "\v^\s{-}v " nextgroup=todoItem skipwhite
|
|
highlight todoStatusDone ctermfg=green guifg=#00ff00
|
|
|
|
syntax match todoStatusCancelled "\v^\s{-}x .*$" nextgroup=todoItem skipwhite
|
|
highlight todoStatusCancelled ctermfg=DarkGreen guifg=#005f00
|
|
|
|
syntax match todoStatusDoing "\v^\s{-}d .*$" nextgroup=todoItem skipwhite
|
|
highlight todoStatusDoing ctermfg=223 guifg=#f0dfaf
|
|
|
|
syntax match todoStatusTest "\v^\s{-}t " nextgroup=todoItem skipwhite
|
|
highlight todoStatusTest ctermfg=darkcyan guifg=#6666ff
|
|
|
|
syntax match todoStatusTodo "\v^\s{-}- " nextgroup=todoItem skipwhite
|
|
highlight todoStatusTodo ctermfg=red guifg=#ff0000
|
|
|
|
syntax match todoStatusImportant "\v^\s{-}\> .*$" nextgroup=todoItem skipwhite
|
|
syntax match todoStatusImportant "\v^\s{-}! .*$" nextgroup=todoItem skipwhite
|
|
highlight todoStatusImportant ctermfg=167 guifg=#d75f5f
|
|
|
|
syntax match todoStatusQuestion "\v^\s{-}\? " nextgroup=todoItem skipwhite
|
|
highlight todoStatusQuestion ctermfg=darkcyan guifg=#6666ff
|
|
|
|
" Highlight matching brackets (for example a timeslot)
|
|
"syntax match brack /[\[\]]/ | hi brack ctermfg=DarkMagenta
|
|
|
|
syntax match timeslot "\v\[.*-.*\] " nextgroup=todoItem skipwhite
|
|
highlight timeslot ctermfg=Magenta guifg=#d700af
|
|
|
|
" Match items starting with a <keyword-or-date-or-something>:
|
|
syntax match todoTitledItem /^[a-zA-Z0-9\-_]*: / nextgroup=todoItem skipwhite
|
|
highlight todoTitledItem ctermfg=172 guifg=#d78700
|
|
"highlight todoTitledItem ctermfg=130 guifg=#af5f00 " DarkOrange
|
|
|
|
" A todoItem has a subject (e.g., a word that's followed by a ':')
|
|
syntax match todoItem '[a-zA-Z0-9\-_]\+:' contained
|
|
highlight todoItem ctermfg=Blue guifg=#87d7ff
|
|
|
|
highlight link todoStatusDone PreProc
|
|
highlight link todoStatusDoing PreProc
|
|
highlight link todoStatusCancelled PreProc
|
|
highlight link todoStatusTest PreProc
|
|
highlight link todoStatusTodo PreProc
|
|
highlight link todoStatusImportant PreProc
|
|
highlight link todoStatusQuestion PreProc
|
|
|
|
|
|
" Syntax highlighting scheme name
|
|
let b:current_syntax = "todo"
|