From 75bce1dc93293f4f1dfd1541386afb607f09d726 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Wed, 24 Jun 2020 16:45:17 +0200 Subject: Python highlights: Reset highlighting in f-string interpolation This solution is preferable to `(identifier) @Normal` since otherwise everything without highlight will use string-highlighting. --- queries/python/highlights.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'queries/python') diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm index e238a9a8e..ca0f84387 100644 --- a/queries/python/highlights.scm +++ b/queries/python/highlights.scm @@ -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 -- cgit v1.2.3-70-g09d2