From 6ac9f2e51270cd6f57c4783a36c60cd03e4cfb94 Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Sun, 21 Sep 2025 16:59:47 -0700 Subject: 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. --- runtime/queries/cylc/highlights.scm | 2 ++ runtime/queries/earthfile/highlights.scm | 2 +- runtime/queries/make/highlights.scm | 2 ++ runtime/queries/matlab/highlights.scm | 7 +++---- runtime/queries/python/highlights.scm | 2 ++ 5 files changed, 10 insertions(+), 5 deletions(-) (limited to 'runtime') 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 [ -- cgit v1.2.3-70-g09d2