From 7c8b7aa91cc1dec48e79a65a201b7c5228203d2d Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 5 Apr 2016 11:01:57 -0400 Subject: syntax/todo.vim: Highlight TODOs that start with whitespace Subtasks get indented. This will highlight undone tasks even if there's whitespace in front of them. --- syntax/todo.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'syntax') diff --git a/syntax/todo.vim b/syntax/todo.vim index 56cce73..140b0dd 100644 --- a/syntax/todo.vim +++ b/syntax/todo.vim @@ -2,7 +2,7 @@ if exists('b:current_syntax') finish endif -syntax match todoUndone /^- .\+/ +syntax match todoUndone /^\s*- .\+/ highlight link todoUndone Statement -- cgit v1.2.3