diff options
author | cos <cos> | 2024-08-17 09:59:18 +0200 |
---|---|---|
committer | cos <cos> | 2024-08-17 20:04:54 +0200 |
commit | 90096c4260887860fcee14912e796a7103466056 (patch) | |
tree | 7434c68cff69f7b032736e0b7dd1f65809b84dcc | |
parent | 884b374d533d36906ad0bb2b2116a7ba8e99930f (diff) | |
download | todo.txt-vim-topic/fade-done-render.zip |
wip: Render entire tasks as donetopic/fade-done-render
-rw-r--r-- | syntax/todo.vim | 2 | ||||
-rw-r--r-- | 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) |