From bb275421997b9e2bd63b04227b7e345a193818d5 Mon Sep 17 00:00:00 2001 From: Farzin Date: Fri, 14 Apr 2023 04:04:40 +0330 Subject: [PATCH] Fix python highlights to support single character and alphanumeric constant identifier (#6751) --- runtime/queries/python/highlights.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/queries/python/highlights.scm b/runtime/queries/python/highlights.scm index 70b91efb..0c6a83c5 100644 --- a/runtime/queries/python/highlights.scm +++ b/runtime/queries/python/highlights.scm @@ -94,7 +94,7 @@ ; Variables ((identifier) @constant - (#match? @constant "^[A-Z_]{2,}$")) + (#match? @constant "^_*[A-Z][A-Z\\d_]*$")) ((identifier) @type (#match? @type "^[A-Z]"))