From 90096c4260887860fcee14912e796a7103466056 Mon Sep 17 00:00:00 2001 From: cos Date: Sat, 17 Aug 2024 09:59:18 +0200 Subject: wip: Render entire tasks as done --- syntax/todo.vim | 2 +- tests/todo.vader | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/syntax/todo.vim b/syntax/todo.vim index 44dc87f..dd07035 100644 --- a/syntax/todo.vim +++ b/syntax/todo.vim @@ -16,7 +16,7 @@ hi def TodoCol0 guibg=black syntax region TodoCol0 start=/^/ end=/$/ nextgroup=@TodoStart syntax region TodoTodo contained start=// end=/$/ contains=@TodoFullArgs -syntax region TodoDone contained start=/x / end=/$/ contains=@TodoDoneArgs +syntax region TodoDone contained start=/x / end=/$/ syntax region TodoPriorityA contained start=/(A) / end=/$/ contains=@TodoFullArgs syntax region TodoPriorityB contained start=/(B) / end=/$/ contains=@TodoFullArgs syntax region TodoPriorityC contained start=/(C) / end=/$/ contains=@TodoFullArgs diff --git a/tests/todo.vader b/tests/todo.vader index 12f7f77..8a43129 100644 --- a/tests/todo.vader +++ b/tests/todo.vader @@ -24,14 +24,14 @@ Execute (Syntax for done task): AssertEqual 'TodoDone', SyntaxAt( 3, 1) AssertEqual 'TodoDone', SyntaxAt( 3, 4) AssertEqual 'TodoDone', SyntaxAt( 3, 7) - AssertEqual 'TodoKey', SyntaxAt( 3, 13) - AssertEqual 'TodoKey', SyntaxAt( 3, 28) - AssertEqual 'TodoKey', SyntaxAt( 3, 72) - AssertEqual 'TodoDate', SyntaxAt( 3, 17) - AssertEqual 'TodoDate', SyntaxAt( 3, 32) - AssertEqual 'TodoDate', SyntaxAt( 3, 43) - AssertEqual 'TodoProject', SyntaxAt( 3, 54) - AssertEqual 'TodoContext', SyntaxAt( 3, 63) + AssertEqual 'TodoDone', SyntaxAt( 3, 13) + AssertEqual 'TodoDone', SyntaxAt( 3, 28) + AssertEqual 'TodoDone', SyntaxAt( 3, 72) + AssertEqual 'TodoDone', SyntaxAt( 3, 17) + AssertEqual 'TodoDone', SyntaxAt( 3, 32) + AssertEqual 'TodoDone', SyntaxAt( 3, 43) + AssertEqual 'TodoDone', SyntaxAt( 3, 54) + AssertEqual 'TodoDone', SyntaxAt( 3, 63) Execute (Syntax for active task): AssertEqual 'TodoTodo', SyntaxAt( 4, 1) AssertEqual 'TodoOverDueDate', SyntaxAt( 4, 13) -- cgit v1.2.3