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>
|
2021-09-02 11:14:07 +03:00
|
|
|
" Latest Revision: 02 Sep 2021
|
2021-08-31 14:39:47 +03:00
|
|
|
|
|
|
|
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.*/
|
2021-09-04 08:54:02 +03:00
|
|
|
syn match tdIncompleted /^\s*-\s\+\S.*/
|
2021-09-02 07:50:28 +03:00
|
|
|
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
|
2021-09-04 08:54:02 +03:00
|
|
|
hi tdIncompleted ctermfg=lightblue guifg=#add8e6
|
2021-09-02 07:50:28 +03:00
|
|
|
hi tdCompleted ctermfg=green guifg=#00ff00
|
|
|
|
hi tdRejected ctermfg=red guifg=#ff0000
|
|
|
|
hi tdComment ctermfg=cyan guifg=#00ffff
|