From 66be6d9a9c85a069b151776094f6233520e4518c Mon Sep 17 00:00:00 2001 From: gechandesu <47027335+gechandesu@users.noreply.github.com> Date: Tue, 31 Aug 2021 14:39:47 +0300 Subject: [PATCH] Add files via upload --- todolist.vim | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 todolist.vim diff --git a/todolist.vim b/todolist.vim new file mode 100644 index 0000000..ce5556f --- /dev/null +++ b/todolist.vim @@ -0,0 +1,21 @@ +" Vim syntax file +" Language: TODO list file (.td) +" Maintainer: gd +" Latest Revision: 31 Aug 2021 + +if exists("b:current_syntax") + finish +endif + +syn keyword LsTodo TODO +syn match LsComment /#.*/ +syn match LsCompleted /^\s*+\s\+\S.*/ +syn match LsUncompleted /^\s*-\s\+\S.*/ +syn match LsRejected /^\s*x\s\+\S.*/ + +" Highlight +hi LsUncompleted ctermfg=blue guifg=#0000ff +hi LsCompleted ctermfg=green guifg=#00ff00 +hi LsRejected ctermfg=red guifg=#ff0000 +hi LsComment ctermfg=cyan guifg=#00ffff +hi LsTodo ctermfg=black ctermbg=yellow guifg=#000000 guibg=#ffff00