Fix case sensitivity with "due:" in overdue date highlighting
This commit is contained in:
@@ -25,7 +25,7 @@ def add_due_date_syntax_highlight():
|
|||||||
regex = regex_date_before(date.today())
|
regex = regex_date_before(date.today())
|
||||||
regex = r'(^|<)due:%s(>|$)' % regex
|
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")
|
vim.command("highlight default link OverDueDate Error")
|
||||||
|
|
||||||
add_due_date_syntax_highlight()
|
add_due_date_syntax_highlight()
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ if has('python3')
|
|||||||
elseif has('python')
|
elseif has('python')
|
||||||
execute "pyfile " . s:script_dir. "todo.py"
|
execute "pyfile " . s:script_dir. "todo.py"
|
||||||
else
|
else
|
||||||
execute 'syntax match TodoOverDueDate /\v<due:' . todo#GetDateRegexForPastDates() . '>/'
|
execute 'syntax match TodoOverDueDate /\v\c<due:' . todo#GetDateRegexForPastDates() . '>/'
|
||||||
highlight default link TodoOverDueDate Error
|
highlight default link TodoOverDueDate Error
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user