From 9f2ee3b8a64a8f735d02732b8928cb3a20b77530 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Mon, 28 Jan 2019 11:55:34 +0100 Subject: [PATCH] Syntax highlighting for 'titled' lines --- .vim/syntax/todo.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.vim/syntax/todo.vim b/.vim/syntax/todo.vim index 60ae923..1e2986f 100644 --- a/.vim/syntax/todo.vim +++ b/.vim/syntax/todo.vim @@ -76,6 +76,11 @@ highlight todoStatusQuestion ctermfg=darkcyan guifg=#6666ff syntax match timeslot "\v\[.*-.*\] " nextgroup=todoItem skipwhite highlight timeslot ctermfg=Magenta guifg=#d700af +" Match items starting with a : +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