Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
vim-syntax.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't stop on foldmethod of other buffers
[vim-syntax.git]
/
todo.vim
diff --git
a/todo.vim
b/todo.vim
index
6f088a4
..
3f35750
100644
(file)
--- a/
todo.vim
+++ b/
todo.vim
@@
-2,8
+2,14
@@
highlight done ctermfg=DarkGreen
highlight maybedone ctermfg=Blue
highlight headline ctermfg=White cterm=bold,underline
highlight moot ctermfg=DarkGrey
highlight maybedone ctermfg=Blue
highlight headline ctermfg=White cterm=bold,underline
highlight moot ctermfg=DarkGrey
+highlight indent ctermfg=NONE
syntax match done /^\*\+\t\+\zs\S.*$/
syntax match maybedone /^\(done\)\??\t\+\zs.*/
syntax match moot /^[#]\t\+.*/
syntax match done /^\*\+\t\+\zs\S.*$/
syntax match maybedone /^\(done\)\??\t\+\zs.*/
syntax match moot /^[#]\t\+.*/
-syntax match headline /^ \+\zs[^\t]*/
+syntax match indent /^\s\+/
+syn region headline start=/^$\|\%1l/ contains=indent end="\S.*$"
+"syntax match headline /^ \+\zs[^\t]*/
+
+syntax sync minlines=1
+syntax sync maxlines=1