From 7007cbcd5ab16d01aada410bfbe6ecc626ae838f Mon Sep 17 00:00:00 2001 From: Nikola Maruszewski Date: Mon, 2 Sep 2024 12:08:46 -0500 Subject: [PATCH] Fix python highlighting (#724) --- queries/python/highlights.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm index e3d63466..bcab1c4d 100644 --- a/queries/python/highlights.scm +++ b/queries/python/highlights.scm @@ -159,8 +159,6 @@ ;; "Contexts" may have internal highlighting -> low priority. -(comment) @comment -(string) @string (escape_sequence) @escape (interpolation @@ -168,7 +166,9 @@ (_) @embedded "}" @punctuation.special) +(comment) @comment ((string) @doc (.match? @doc "^(\"\"\"|r\"\"\")")) +(string) @string (decorator) @function.special