Update todolist.vim

This commit is contained in:
gechandesu 2021-09-02 07:50:28 +03:00 committed by GitHub
parent c7d24bcbb0
commit ad8ef2798d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
" Vim syntax file " Vim syntax file
" Language: TODO list file (.td) " Language: Todo list file (.todo, .td)
" Maintainer: gd <http://nixhacks.net> " Maintainer: gd <http://nixhacks.net>
" Latest Revision: 31 Aug 2021 " Latest Revision: 31 Aug 2021
@ -7,15 +7,17 @@ if exists("b:current_syntax")
finish finish
endif endif
syn keyword LsTodo TODO syn region tdCode start='`' end='`'
syn match LsComment /#.*/ syn region tdMarked start='\\' end='\\'
syn match LsCompleted /^\s*+\s\+\S.*/ syn match tdComment /#.*/
syn match LsUncompleted /^\s*-\s\+\S.*/ syn match tdCompleted /^\s*+\s\+\S.*/
syn match LsRejected /^\s*x\s\+\S.*/ syn match tdUncompleted /^\s*-\s\+\S.*/
syn match tdRejected /^\s*x\s\+\S.*/
" Highlight " Highlight
hi LsUncompleted ctermfg=blue guifg=#0000ff hi tdCode ctermfg=magenta guifg=#ff00ff
hi LsCompleted ctermfg=green guifg=#00ff00 hi tdMarked ctermfg=black ctermbg=yellow guifg=#000000 guibg=#ffff00
hi LsRejected ctermfg=red guifg=#ff0000 hi tdUncompleted ctermfg=lightblue guifg=#add8e6
hi LsComment ctermfg=cyan guifg=#00ffff hi tdCompleted ctermfg=green guifg=#00ff00
hi LsTodo ctermfg=black ctermbg=yellow guifg=#000000 guibg=#ffff00 hi tdRejected ctermfg=red guifg=#ff0000
hi tdComment ctermfg=cyan guifg=#00ffff