diff options
author | Teddy Wing | 2016-04-20 17:20:40 -0400 |
---|---|---|
committer | Teddy Wing | 2016-04-20 17:20:40 -0400 |
commit | a306de8c622aa030b9da609032414bc215d1c38c (patch) | |
tree | 9c7d3f094a1e0903170796cf1d2caeb4a48cdce8 /syntax | |
parent | 2a36ec5dc5f039af1c79c62969a8573d16f3b8fa (diff) | |
download | vim-twodo-a306de8c622aa030b9da609032414bc215d1c38c.tar.bz2 |
Highlight important tasks
Important tasks start with a `!` instead of a `-`. Highlight them
separately from normal tasks so that they can be visually distinguished.
Here we use the Error highlight group for them because it's red (at
least in my colour scheme).
Diffstat (limited to 'syntax')
-rw-r--r-- | syntax/todo.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/syntax/todo.vim b/syntax/todo.vim index 140b0dd..8179393 100644 --- a/syntax/todo.vim +++ b/syntax/todo.vim @@ -3,7 +3,9 @@ if exists('b:current_syntax') endif syntax match todoUndone /^\s*- .\+/ +syntax match todoImportant /^\s*!.\+/ highlight link todoUndone Statement +highlight link todoImportant Error let b:current_syntax = 'todo' |