From 9d6d9a1f647f88714cdaa95d2a80f5689f60ba68 Mon Sep 17 00:00:00 2001 From: Leandro Freitas Date: Tue, 31 May 2011 14:13:31 -0300 Subject: [PATCH] Changed filetype name --- ftdetect/todo.vim | 9 +++++++++ ftplugin/todo.vim | 0 syntax/todo.vim | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 ftdetect/todo.vim create mode 100644 ftplugin/todo.vim create mode 100644 syntax/todo.vim diff --git a/ftdetect/todo.vim b/ftdetect/todo.vim new file mode 100644 index 0000000..889cbbb --- /dev/null +++ b/ftdetect/todo.vim @@ -0,0 +1,9 @@ +" File: todo.txt.vim +" Description: Todo.txt filetype detection +" Author: Leandro Freitas +" Licence: Vim licence +" Website: http://github.com/freitass/todo.txt.vim +" Version: 0.1 + +autocmd BufNewFile,BufRead Todo.txt set filetype=todo + diff --git a/ftplugin/todo.vim b/ftplugin/todo.vim new file mode 100644 index 0000000..e69de29 diff --git a/syntax/todo.vim b/syntax/todo.vim new file mode 100644 index 0000000..5ef0828 --- /dev/null +++ b/syntax/todo.vim @@ -0,0 +1,46 @@ +" File: todo.txt.vim +" Description: Todo.txt syntax settings +" Author: Leandro Freitas +" Licence: Vim licence +" Website: http://github.com/freitass/todo.txt.vim +" Version: 0.1 + +if exists("b:current_syntax") + finish +endif + +syntax match TodoDone '^[xX]\s.*$' +syntax match TodoPriorityA '^([aA])\s.*$' +syntax match TodoPriorityB '^([bB])\s.*$' +syntax match TodoPriorityC '^([cC])\s.*$' +syntax match TodoPriorityD '^([dD])\s.*$' +syntax match TodoPriorityE '^([eE])\s.*$' +syntax match TodoPriorityF '^([fF])\s.*$' +syntax match TodoPriorityG '^([gG])\s.*$' +syntax match TodoPriorityH '^([hH])\s.*$' +syntax match TodoPriorityI '^([iI])\s.*$' +syntax match TodoPriorityJ '^([jJ])\s.*$' +syntax match TodoPriorityK '^([kK])\s.*$' +syntax match TodoPriorityL '^([lL])\s.*$' +syntax match TodoPriorityM '^([mM])\s.*$' +syntax match TodoPriorityN '^([nN])\s.*$' +syntax match TodoPriorityO '^([oO])\s.*$' +syntax match TodoPriorityP '^([pP])\s.*$' +syntax match TodoPriorityQ '^([qQ])\s.*$' +syntax match TodoPriorityR '^([rR])\s.*$' +syntax match TodoPriorityS '^([sS])\s.*$' +syntax match TodoPriorityT '^([tT])\s.*$' +syntax match TodoPriorityU '^([uU])\s.*$' +syntax match TodoPriorityV '^([vV])\s.*$' +syntax match TodoPriorityW '^([wW])\s.*$' +syntax match TodoPriorityX '^([xX])\s.*$' +syntax match TodoPriorityY '^([yY])\s.*$' +syntax match TodoPriorityZ '^([zZ])\s.*$' + +" Other priority colours might be defined by the user +highlight default link TodoDone Comment +highlight default link TodoPriorityA Constant +highlight default link TodoPriorityB Statement +highlight default link TodoPriorityC Identifier + +let b:current_syntax = "todo"