Last active
December 19, 2015 15:59
-
-
Save Pringley/5980593 to your computer and use it in GitHub Desktop.
todo list highlighting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim syntax file | |
" Language: Todo file | |
" Maintainer: Ben Pringle | |
" Latest Revision: 11 July 2013 | |
if exists("b:current_syntax") | |
finish | |
endif | |
" Define line types | |
syn match header '^[A-Z][A-Z ]\+' | |
syn match context '^\s*[@+].*' | |
syn match task_new '^\s*\[\s*\].*' | |
syn match task_star '^\s*\[\s*\]\s*\*.*' | |
syn match task_ignored '^\s*\[i\].*' | |
syn match task_done '^\s*\[[xX]\].*' | |
syn match task_deferred '^\s*\[\s*\]\s*(DEFER.*' | |
syn match task_block '^\s*\[\s*\]\s*(BLOCK.*' | |
syn match ping '^\s*\*.*' | |
syn match extra '^\s*>.*' | |
let b:current_syntax = "todo" | |
" Headers | |
hi def link header Comment | |
hi def link context Type | |
" Bold important todos | |
hi def task_star cterm=bold gui=bold | |
" Faded inactive todos | |
hi def task_done ctermfg=Gray guifg=Gray | |
hi def link task_ignored task_done | |
hi def link task_deferred task_done | |
hi def link task_block task_done | |
hi def link ping task_done | |
hi def link extra task_done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment