Skip to content

Commit 7007cbc

Browse files
author
Nikola Maruszewski
authored
Fix python highlighting (#724)
1 parent 365a4f7 commit 7007cbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

queries/python/highlights.scm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,16 +159,16 @@
159159

160160
;; "Contexts" may have internal highlighting -> low priority.
161161

162-
(comment) @comment
163-
(string) @string
164162
(escape_sequence) @escape
165163

166164
(interpolation
167165
"{" @punctuation.special
168166
(_) @embedded
169167
"}" @punctuation.special)
170168

169+
(comment) @comment
171170
((string) @doc
172171
(.match? @doc "^(\"\"\"|r\"\"\")"))
172+
(string) @string
173173

174174
(decorator) @function.special

0 commit comments

Comments
 (0)