From 8d56153dbd3bc4e47db9b4853c335ea32fb56d3f Mon Sep 17 00:00:00 2001 From: Tim Segers Date: Thu, 13 Nov 2025 17:06:40 +0100 Subject: Add [!] and fixed-width blocks --- syntax/todo.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'syntax') diff --git a/syntax/todo.vim b/syntax/todo.vim index 5584831..2805c15 100644 --- a/syntax/todo.vim +++ b/syntax/todo.vim @@ -35,6 +35,7 @@ syn match todoCbDone "\[x\]" syn match todoCbNope "\[n\]" syn match todoCbTodo "\[ \]" syn match todoCbWait "\[w\]" +syn match todoCbAttn "\[!\]" hi link todoCbDelegated Special hi link todoCbDoing Identifier @@ -42,6 +43,7 @@ hi link todoCbDone Constant hi link todoCbNope Comment hi link todoCbTodo Todo hi link todoCbWait Error +hi link todoCbAttn Error " todo planning syn match todoDeadline /^DEADLINE .*/ @@ -69,15 +71,17 @@ hi link todoBlock String " custom blocks syn region todoAlert start="!!!" end="!!!" syn region todoVerb start="```" end="```" +syn match todoLit /^\s*:.*$/ hi link todoAlert Special hi link todoVerb String +hi link todoLit String " org lists syn match todoList "^\(\s*[-+]\|\s\+\*\)\(\s\|$\)" nextgroup=todoListItem syn match todoList "^\s*\(\a\|\d\+\)[.)]\(\s\|$\)" nextgroup=todoListItem -syn match todoListItem /.*$/ contained contains=todoLink,todoCbDelegated,todoCbDoing,todoCbDone,todoCbNope,todoCbTodo,todoCbWait +syn match todoListItem /.*$/ contained contains=todoLink,todoCbDelegated,todoCbDoing,todoCbDone,todoCbNope,todoCbTodo,todoCbWait,todoCbAttn hi link todoList todoBold hi link todoListItem Normal -- cgit v1.2.3-70-g09d2