Pastebin
Paste #10081: No description
< previous paste - next paste>
Pasted by Anonymous Coward
" Syntax file for Getting Things Done task-list
"
" General info:
" List of default group names to use in highlighting:
" https://vimhelp.org/syntax.txt.html#group-name
"
syn match todoString /"[^"]\+"/
hi link todoString String
syn match todoComment /#.*/
hi link todoComment Comment
syn match todoCategory /^@.\+/
"hi todoCategory ctermfg=red guifg=red
hi link todoCategory Todo
syn match todoDate /^\d\{4}-\d\{2}-\d\{2}.*$/ nextgroup=Constant
hi link todoDate Identifier
" URLs start with a known protocol or www,web,w3.
syn match todoURL `\v<(((https?|ftp|gopher)://|(mailto|file|news):)[^' <>"]+|(www|web|w3)[a-z0-9_-]*\.[a-z0-9._-]+\.[^' <>"]+)[a-z0-9/]`
syn match todoEmail "\v[_=a-z\./+0-9-]+\@[a-z0-9._-]+\a{2}"
hi def link todoEmail String
hi def link todoURL String
syn match Indent1 contains=todoURL,todoEmail,todoComment,todoString "^\s\{4}\S.*$"
syn match Indent2 contains=todoURL,todoEmail,todoComment,todoString "^\s\{8}\S.*$"
syn match Indent3 contains=todoURL,todoEmail,todoComment,todoString "^\s\{12}\S.*$"
syn match Indent4 contains=todoURL,todoEmail,todoComment,todoString "^\s\{16}\S.*$"
syn match Indent5 contains=todoURL,todoEmail,todoComment,todoString "^\s\{20}\S.*$"
syn match Indent6 contains=todoURL,todoEmail,todoComment,todoString "^\s\{24}\S.*$"
hi link Indent1 Normal
hi link Indent2 Number
hi link Indent3 Indent1
hi link Indent4 Indent2
hi link Indent5 Indent1
hi link Indent6 Indent2
New Paste
Go to most recent paste.