1
0
mirror of https://codeberg.org/diginaut/dotfiles.git synced 2026-05-07 13:32:34 +02:00

2 Commits

Author SHA1 Message Date
diginaut f91fecc57d Make syntax of keywords consistent throughout file 2019-01-28 11:56:17 +01:00
diginaut 9f2ee3b8a6 Syntax highlighting for 'titled' lines 2019-01-28 11:55:34 +01:00
+8 -3
View File
@@ -34,7 +34,7 @@ highlight link todoComment Comment
" Heading (day) delimiters
syntax region todoDay start=/\v\=\=\ / skip=/\v\\./ end=/\v\ \=\=\=\=\=\=/
hi link todoDay Delimiter
highlight link todoDay Delimiter
" Show -scratched out- parts of a line as darker text (Delimiter colour)
@@ -76,9 +76,14 @@ highlight todoStatusQuestion ctermfg=darkcyan guifg=#6666ff
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 ':')
syn match todoItem '[a-zA-Z0-9\-_]\+:' contained
hi todoItem ctermfg=Blue guifg=#87d7ff
syntax match todoItem '[a-zA-Z0-9\-_]\+:' contained
highlight todoItem ctermfg=Blue guifg=#87d7ff
highlight link todoStatusDone PreProc
highlight link todoStatusDoing PreProc