diff options
author | cos <cos> | 2024-07-09 10:57:26 +0200 |
---|---|---|
committer | cos <cos> | 2024-07-09 11:12:22 +0200 |
commit | 9f4e481f267cc2ff970ef2cff3bfca1750a7b396 (patch) | |
tree | cd4b96a4ab6c3e6a1146e8706fa83ece627a1e0f | |
parent | 3d7231aed831ae8e37ee10c8ea4cdb89d1808d84 (diff) | |
download | todo.txt-vim-9f4e481f267cc2ff970ef2cff3bfca1750a7b396.zip |
fixup! Allow syntax inclusion, by going match → region
Without this commit, the reimplemented syntax works for lines which are
done or have priorities. It however failed to match lines on lines
lacking those things. This commit fixes that.
-rw-r--r-- | syntax/todo.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/syntax/todo.vim b/syntax/todo.vim index 6dfba8c..4c2f6ab 100644 --- a/syntax/todo.vim +++ b/syntax/todo.vim @@ -8,13 +8,14 @@ if exists("b:current_syntax") finish endif -syntax cluster TodoStart contains=TodoDone,TodoPriorityA,TodoPriorityB,TodoPriorityC,TodoPriorityD,TodoPriorityE,TodoPriorityF,TodoPriorityG,TodoPriorityH,TodoPriorityI,TodoPriorityJ,TodoPriorityK,TodoPriorityL,TodoPriorityM,TodoPriorityN,TodoPriorityO,TodoPriorityP,TodoPriorityQ,TodoPriorityR,TodoPriorityS,TodoPriorityT,TodoPriorityU,TodoPriorityV,TodoPriorityW,TodoPriorityX,TodoPriorityY,TodoPriorityZ,TodoProject,TodoContext +syntax cluster TodoStart contains=TodoTodo,TodoDone,TodoPriorityA,TodoPriorityB,TodoPriorityC,TodoPriorityD,TodoPriorityE,TodoPriorityF,TodoPriorityG,TodoPriorityH,TodoPriorityI,TodoPriorityJ,TodoPriorityK,TodoPriorityL,TodoPriorityM,TodoPriorityN,TodoPriorityO,TodoPriorityP,TodoPriorityQ,TodoPriorityR,TodoPriorityS,TodoPriorityT,TodoPriorityU,TodoPriorityV,TodoPriorityW,TodoPriorityX,TodoPriorityY,TodoPriorityZ,TodoProject,TodoContext syntax cluster TodoDoneArgs contains=TodoKey,TodoDate,TodoProject,TodoContext syntax cluster TodoFullArgs contains=@TodoDoneArgs,TodoDueToday,TodoOverDueDate,TodoThresholdDate 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 TodoPriorityA contained start=/(A) / end=/$/ contains=@TodoFullArgs syntax region TodoPriorityB contained start=/(B) / end=/$/ contains=@TodoFullArgs |