mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-31 02:01:05 +00:00
fix(syntax): Use variable.other for TodoTxt attrs
This commit is contained in:
parent
316f1b3601
commit
31f964f468
13
assets/patches/TodoTxt.sublime-syntax.patch
vendored
Normal file
13
assets/patches/TodoTxt.sublime-syntax.patch
vendored
Normal file
@ -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.
|
@ -36,7 +36,7 @@
|
||||
|
||||
[38;2;117;113;94m//[0m[38;2;117;113;94m/ Complete task ///[0m
|
||||
[38;2;117;113;94mx [0m[38;2;190;132;255m2011-03-03[0m[38;2;117;113;94m [0m[38;2;117;113;94mCall Mom[0m
|
||||
[38;2;117;113;94mx [0m[38;2;117;113;94mWith [0m[38;2;249;38;114m@contexts[0m[38;2;117;113;94m [0m[38;2;230;219;116m+projects[0m[38;2;117;113;94m and[0m[38;2;117;113;94m key:value[0m
|
||||
[38;2;117;113;94mx [0m[38;2;117;113;94mWith [0m[38;2;249;38;114m@contexts[0m[38;2;117;113;94m [0m[38;2;230;219;116m+projects[0m[38;2;117;113;94m and[0m[38;2;255;255;255m key:value[0m
|
||||
|
||||
[38;2;117;113;94m//[0m[38;2;117;113;94m/ Not completed tasks ///[0m
|
||||
[38;2;166;226;46mxylophone lesson[0m
|
||||
@ -55,7 +55,7 @@
|
||||
[38;2;166;226;46mAdditional definition[0m
|
||||
|
||||
[38;2;117;113;94m//[0m[38;2;117;113;94m/ Properties ///[0m
|
||||
[38;2;166;226;46mDecide on present for Mom[0m[38;2;166;226;46m due:2022-01-01 pri:1[0m
|
||||
[38;2;166;226;46mDecide on present for Mom[0m[38;2;255;255;255m due:2022-01-01 pri:1[0m
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user