From bcf421b4e7f164dfc8aca8a94949adda2bdda10f Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sat, 12 Sep 2020 20:57:01 +0200 Subject: Fix #307: Use and document TSVariable/TSVariableBuiltin in all languages --- queries/python/highlights.scm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'queries/python/highlights.scm') diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm index e991e28d3..b71544eca 100644 --- a/queries/python/highlights.scm +++ b/queries/python/highlights.scm @@ -1,6 +1,9 @@ ;; From tree-sitter-python licensed under MIT License ; Copyright (c) 2016 Max Brunsfeld +; Variables +(identifier) @variable + ; Reset highlighing in f-string interpolations (interpolation) @Normal @@ -105,8 +108,8 @@ (none) @constant.builtin [(true) (false)] @boolean -((identifier) @constant.builtin - (#match? @constant.builtin "self")) +((identifier) @variable.builtin + (#match? @variable.builtin "self")) (integer) @number (float) @float @@ -232,8 +235,8 @@ ((class_definition body: (block (function_definition - parameters: (parameters . (identifier) @constant.builtin)))) - (#vim-match? @constant.builtin "^(self|obj|cls)$")) + parameters: (parameters . (identifier) @variable.builtin)))) + (#vim-match? @variable.builtin "^(self|obj|cls)$")) ;; Error (ERROR) @error -- cgit v1.2.3-70-g09d2