Created
October 20, 2021 14:28
mini vim syntax for todos
This file contains hidden or 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
" This goes into ~/.vim/syntax/todo.vim | |
" Auto registration: $MYVIMRC << au BufRead,BufNewFile TODO set filetype=todo | |
if exists("b:current_syntax") | |
finish | |
endif | |
" # Header | |
syn match headLine '\v#.*$' | |
" > doing | |
syn match progLine '^\s*>.*$' | |
" ! attention | |
syn match attnLine '^\s*!.*$' | |
hi def link headLine Constant | |
hi def link progLine Comment | |
hi def link attnLine Statement | |
let b:current_syntax = "todo" |
Author
lnksz
commented
Oct 20, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment