diff options
author | Teddy Wing | 2016-04-05 10:57:54 -0400 |
---|---|---|
committer | Teddy Wing | 2016-04-05 10:57:54 -0400 |
commit | b0e0cef8349daf16d9b4c4ce7dd76ddf95719b03 (patch) | |
tree | 8cc274edf0954d1e80fe83a640b27a527f49df9f /syntax | |
parent | af18c165ace738e576ab840167bca8463b1db065 (diff) | |
download | vim-twodo-b0e0cef8349daf16d9b4c4ce7dd76ddf95719b03.tar.bz2 |
Add syntax file
Based on Ch. 45 of Learn Vimscript the Hard Way
(http://learnvimscriptthehardway.stevelosh.com/chapters/45.html).
Highlights undone TODOs as Vim `Statement`s.
Diffstat (limited to 'syntax')
-rw-r--r-- | syntax/todo.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/syntax/todo.vim b/syntax/todo.vim new file mode 100644 index 0000000..f1cd862 --- /dev/null +++ b/syntax/todo.vim @@ -0,0 +1,12 @@ +if exists('b:current_syntax') + finish +endif + +" highlight Undone ctermbg=yellow ctermfg=235 +" match Undone /^- .\+/ + +syntax match todoUndone /^- .\+/ + +highlight link todoUndone Statement + +let b:current_syntax = 'todo' |