aboutsummaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2025-09-21 16:59:47 -0700
committerGitHub <noreply@github.com>2025-09-21 16:59:47 -0700
commit6ac9f2e51270cd6f57c4783a36c60cd03e4cfb94 (patch)
treea6ce1c753112bfca1be1da866962e9de3e3cd898 /runtime
parentfeat(koto)!: update parser and queries (diff)
downloadnvim-treesitter-6ac9f2e51270cd6f57c4783a36c60cd03e4cfb94.tar
nvim-treesitter-6ac9f2e51270cd6f57c4783a36c60cd03e4cfb94.tar.gz
nvim-treesitter-6ac9f2e51270cd6f57c4783a36c60cd03e4cfb94.tar.bz2
nvim-treesitter-6ac9f2e51270cd6f57c4783a36c60cd03e4cfb94.tar.lz
nvim-treesitter-6ac9f2e51270cd6f57c4783a36c60cd03e4cfb94.tar.xz
nvim-treesitter-6ac9f2e51270cd6f57c4783a36c60cd03e4cfb94.tar.zst
nvim-treesitter-6ac9f2e51270cd6f57c4783a36c60cd03e4cfb94.zip
fix: align line continuation highlights (#8146)
These should be `@punctuation.special`. Added the highlight for python, cylc, and make. Corrected it for earthfile and matlab.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/cylc/highlights.scm2
-rw-r--r--runtime/queries/earthfile/highlights.scm2
-rw-r--r--runtime/queries/make/highlights.scm2
-rw-r--r--runtime/queries/matlab/highlights.scm7
-rw-r--r--runtime/queries/python/highlights.scm2
5 files changed, 10 insertions, 5 deletions
diff --git a/runtime/queries/cylc/highlights.scm b/runtime/queries/cylc/highlights.scm
index a744caa52..086caf788 100644
--- a/runtime/queries/cylc/highlights.scm
+++ b/runtime/queries/cylc/highlights.scm
@@ -32,6 +32,8 @@
(graph_parenthesis)
] @punctuation.bracket
+(line_continuation) @punctuation.special
+
[
"\""
"\"\"\""
diff --git a/runtime/queries/earthfile/highlights.scm b/runtime/queries/earthfile/highlights.scm
index cc7dce298..ee0e300b5 100644
--- a/runtime/queries/earthfile/highlights.scm
+++ b/runtime/queries/earthfile/highlights.scm
@@ -126,4 +126,4 @@
"=" @operator
-(line_continuation) @operator
+(line_continuation) @punctuation.special
diff --git a/runtime/queries/make/highlights.scm b/runtime/queries/make/highlights.scm
index afdfbe336..8d182c026 100644
--- a/runtime/queries/make/highlights.scm
+++ b/runtime/queries/make/highlights.scm
@@ -168,3 +168,5 @@
"file"
"value"
] @function.builtin)
+
+"\\" @punctuation.special
diff --git a/runtime/queries/matlab/highlights.scm b/runtime/queries/matlab/highlights.scm
index 66ec69465..05713e05a 100644
--- a/runtime/queries/matlab/highlights.scm
+++ b/runtime/queries/matlab/highlights.scm
@@ -211,10 +211,9 @@
(#eq? @boolean "false"))
; Comments
-[
- (comment)
- (line_continuation)
-] @comment @spell
+(comment) @comment @spell
+
+(line_continuation) @punctuation.special
((comment) @keyword.directive
(#lua-match? @keyword.directive "^%%%% "))
diff --git a/runtime/queries/python/highlights.scm b/runtime/queries/python/highlights.scm
index e5b9ac3aa..3e777d08b 100644
--- a/runtime/queries/python/highlights.scm
+++ b/runtime/queries/python/highlights.scm
@@ -247,6 +247,8 @@
"{" @punctuation.special
"}" @punctuation.special)
+(line_continuation) @punctuation.special
+
(type_conversion) @function.macro
[