From b0e0cef8349daf16d9b4c4ce7dd76ddf95719b03 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 5 Apr 2016 10:57:54 -0400 Subject: 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. --- syntax/todo.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 syntax/todo.vim 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' -- cgit v1.2.3