Python highlights: Reset highlighting in f-string interpolation

This solution is preferable to `(identifier) @Normal` since otherwise
everything without highlight will use string-highlighting.
This commit is contained in:
Stephan Seitz 2020-06-24 16:45:17 +02:00 committed by Kiyan Yazdani
parent 88c8b70560
commit 75bce1dc93

View file

@ -1,9 +1,10 @@
;; From tree-sitter-python licensed under MIT License
; Copyright (c) 2016 Max Brunsfeld
; Identifier naming conventions
; Reset highlighing in f-string interpolations
(interpolation) @Normal
(identifier) @Normal
; Identifier naming conventions
((identifier) @type
(match? @type "^[A-Z]"))
((identifier) @constant