diff --git a/assets/patches/TodoTxt.sublime-syntax.patch b/assets/patches/TodoTxt.sublime-syntax.patch new file mode 100644 index 00000000..81a6d2e0 --- /dev/null +++ b/assets/patches/TodoTxt.sublime-syntax.patch @@ -0,0 +1,13 @@ +diff --git syntaxes/02_Extra/TodoTxt/TodoTxt.sublime-syntax syntaxes/02_Extra/TodoTxt/TodoTxt.sublime-syntax +index 6c75dbb..0115978 100644 +--- syntaxes/02_Extra/TodoTxt/TodoTxt.sublime-syntax ++++ syntaxes/02_Extra/TodoTxt/TodoTxt.sublime-syntax +@@ -68,7 +68,7 @@ contexts: + + - match: (\s+[^\s:]+:[^\s:]+)+\s*$ + comment: Custom attributes +- scope: variable.annotation.todotxt.attribute ++ scope: variable.other.todotxt.attribute + + comments: + # Comments begin with a '//' and finish at the end of the line. diff --git a/tests/syntax-tests/highlighted/Todo.txt/todo.txt b/tests/syntax-tests/highlighted/Todo.txt/todo.txt index 56d7067d..561f3336 100644 --- a/tests/syntax-tests/highlighted/Todo.txt/todo.txt +++ b/tests/syntax-tests/highlighted/Todo.txt/todo.txt @@ -36,7 +36,7 @@ /// Complete task /// x 2011-03-03 Call Mom -x With @contexts +projects and key:value +x With @contexts +projects and key:value /// Not completed tasks /// xylophone lesson @@ -55,7 +55,7 @@ Additional definition /// Properties /// -Decide on present for Mom due:2022-01-01 pri:1 +Decide on present for Mom due:2022-01-01 pri:1