diff options
author | Farzin | 2023-04-14 00:34:40 +0000 |
---|---|---|
committer | GitHub | 2023-04-14 00:34:40 +0000 |
commit | bb275421997b9e2bd63b04227b7e345a193818d5 (patch) | |
tree | a26517e85186d5fbc62372bf7610d7e0a4fee0a8 /runtime | |
parent | 5ec41195a0dde08c559f9f1b95c0ff4054dfa2ba (diff) |
Fix python highlights to support single character and alphanumeric constant identifier (#6751)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/queries/python/highlights.scm | 2 |
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]")) |