aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorFarzin2023-04-14 00:34:40 +0000
committerGitHub2023-04-14 00:34:40 +0000
commitbb275421997b9e2bd63b04227b7e345a193818d5 (patch)
treea26517e85186d5fbc62372bf7610d7e0a4fee0a8 /runtime
parent5ec41195a0dde08c559f9f1b95c0ff4054dfa2ba (diff)
Fix python highlights to support single character and alphanumeric constant identifier (#6751)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/python/highlights.scm2
1 files changed, 1 insertions, 1 deletions
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]"))