on master help sign in
Fix python highlights to support single character and alphanumeric constant identifier (#6751)
commitbb275421997b9e2bd63b04227b7e345a193818d5 authorFarzin <farzinvatani@outlook.com> dateFri 14 Apr 2023, 04:04 (4 years ago) parent5ec4119
1 file changed+1−1
runtime/queries/python/highlights.scm+1−1
runtime/queries/python/highlights.scm+1−1
@@ -94,7 +94,7 @@
9494; Variables
9595
9696((identifier) @constant
97− (#match? @constant "^[A-Z_]{2,}$"))
97+ (#match? @constant "^_*[A-Z][A-Z\\d_]*$"))
9898
9999((identifier) @type
100100 (#match? @type "^[A-Z]"))