todolist-syntax/todolist.vim

24 lines
720 B
VimL
Raw Normal View History

2021-08-31 14:39:47 +03:00
" Vim syntax file
2021-09-02 07:50:28 +03:00
" Language: Todo list file (.todo, .td)
2021-08-31 14:39:47 +03:00
" Maintainer: gd <http://nixhacks.net>
" Latest Revision: 31 Aug 2021
if exists("b:current_syntax")
finish
endif
2021-09-02 07:50:28 +03:00
syn region tdCode start='`' end='`'
syn region tdMarked start='\\' end='\\'
syn match tdComment /#.*/
syn match tdCompleted /^\s*+\s\+\S.*/
syn match tdUncompleted /^\s*-\s\+\S.*/
syn match tdRejected /^\s*x\s\+\S.*/
2021-08-31 14:39:47 +03:00
" Highlight
2021-09-02 07:50:28 +03:00
hi tdCode ctermfg=magenta guifg=#ff00ff
hi tdMarked ctermfg=black ctermbg=yellow guifg=#000000 guibg=#ffff00
hi tdUncompleted ctermfg=lightblue guifg=#add8e6
hi tdCompleted ctermfg=green guifg=#00ff00
hi tdRejected ctermfg=red guifg=#ff0000
hi tdComment ctermfg=cyan guifg=#00ffff