Fix case sensitivity with "due:" in overdue date highlighting

This commit is contained in:
fretep
2017-09-09 20:35:44 +10:00
parent 03fe8bb167
commit a778ef5590
2 changed files with 2 additions and 2 deletions

View File

@@ -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()