aboutsummaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2026-04-03 01:43:28 -0700
committerGitHub <noreply@github.com>2026-04-03 10:43:28 +0200
commit81295eb0c5fc05ab3796a28c9f160c3ac4098106 (patch)
tree8b418811c4113aa73faccbef3bfeb25623e8c822 /runtime
parentchore: remove redundant emmyluarc entry (diff)
downloadnvim-treesitter-81295eb0c5fc05ab3796a28c9f160c3ac4098106.tar
nvim-treesitter-81295eb0c5fc05ab3796a28c9f160c3ac4098106.tar.gz
nvim-treesitter-81295eb0c5fc05ab3796a28c9f160c3ac4098106.tar.bz2
nvim-treesitter-81295eb0c5fc05ab3796a28c9f160c3ac4098106.tar.lz
nvim-treesitter-81295eb0c5fc05ab3796a28c9f160c3ac4098106.tar.xz
nvim-treesitter-81295eb0c5fc05ab3796a28c9f160c3ac4098106.tar.zst
nvim-treesitter-81295eb0c5fc05ab3796a28c9f160c3ac4098106.zip
feat(parsers): add jjdescription (#8625)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/jjdescription/highlights.scm42
-rw-r--r--runtime/queries/jjdescription/injections.scm6
2 files changed, 48 insertions, 0 deletions
diff --git a/runtime/queries/jjdescription/highlights.scm b/runtime/queries/jjdescription/highlights.scm
new file mode 100644
index 000000000..7c87c08be
--- /dev/null
+++ b/runtime/queries/jjdescription/highlights.scm
@@ -0,0 +1,42 @@
+[
+ (comment)
+ (generated_comment)
+] @comment
+
+(comment_content) @spell
+
+(subject) @markup.heading
+
+(type) @keyword
+
+(scope) @variable.parameter
+
+(change_id) @constant
+
+(filepath) @string.special.path
+
+((rest) @comment
+ (#not-lua-match? @comment "^diff"))
+
+"JJ: ignore-rest" @keyword.directive
+
+[
+ "("
+ ")"
+] @punctuation.bracket
+
+":" @punctuation.delimiter
+
+"!" @punctuation.special
+
+[
+ "A"
+ "C"
+] @diff.plus
+
+"D" @diff.minus
+
+[
+ "M"
+ "R"
+] @diff.delta
diff --git a/runtime/queries/jjdescription/injections.scm b/runtime/queries/jjdescription/injections.scm
new file mode 100644
index 000000000..538383a3d
--- /dev/null
+++ b/runtime/queries/jjdescription/injections.scm
@@ -0,0 +1,6 @@
+((comment_content) @injection.content
+ (#set! injection.language "comment"))
+
+((rest) @injection.content
+ (#lua-match? @injection.content "^diff")
+ (#set! injection.language "diff"))