summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorAlexander Brevig2022-08-20 00:16:54 +0000
committerGitHub2022-08-20 00:16:54 +0000
commitaef00a3ab640417f06dc9f59938283ffde5c451e (patch)
tree97a96614b4349ede9cb12dffc0cbaec6f1fdbd1a /runtime
parent9b0fd51318202c97d1206a02bc9b0dfe95762e8a (diff)
feat: add taskwarrior to languages so `task N edit` is nice (#3468)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/task/highlights.scm4
-rw-r--r--runtime/queries/task/injections.scm2
2 files changed, 6 insertions, 0 deletions
diff --git a/runtime/queries/task/highlights.scm b/runtime/queries/task/highlights.scm
new file mode 100644
index 00000000..90441307
--- /dev/null
+++ b/runtime/queries/task/highlights.scm
@@ -0,0 +1,4 @@
+(comment) @comment
+(datetime) @type
+(identifier) @variable
+(keyword) @keyword
diff --git a/runtime/queries/task/injections.scm b/runtime/queries/task/injections.scm
new file mode 100644
index 00000000..321c90ad
--- /dev/null
+++ b/runtime/queries/task/injections.scm
@@ -0,0 +1,2 @@
+((comment) @injection.content
+ (#set! injection.language "comment"))