From a778ef55909030a278edbb845f3ab35f1f6a597e Mon Sep 17 00:00:00 2001 From: fretep Date: Sat, 9 Sep 2017 20:35:44 +1000 Subject: [PATCH] Fix case sensitivity with "due:" in overdue date highlighting --- syntax/python/todo.py | 2 +- syntax/todo.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/python/todo.py b/syntax/python/todo.py index e928026..122ad22 100644 --- a/syntax/python/todo.py +++ b/syntax/python/todo.py @@ -25,7 +25,7 @@ def add_due_date_syntax_highlight(): regex = regex_date_before(date.today()) regex = r'(^|<)due:%s(>|$)' % regex - vim.command("syntax match OverDueDate '\\v%s'" % regex) + vim.command("syntax match OverDueDate '\\v\\c%s'" % regex) vim.command("highlight default link OverDueDate Error") add_due_date_syntax_highlight() diff --git a/syntax/todo.vim b/syntax/todo.vim index 006cd8d..84db56b 100644 --- a/syntax/todo.vim +++ b/syntax/todo.vim @@ -174,7 +174,7 @@ if has('python3') elseif has('python') execute "pyfile " . s:script_dir. "todo.py" else - execute 'syntax match TodoOverDueDate /\v/' + execute 'syntax match TodoOverDueDate /\v\c/' highlight default link TodoOverDueDate Error endif