on master help sign in
Fix python highlights to support single character and alphanumeric constant identifier (#6751)
bb27542Farzin
runtime/queries/python/highlights.scm+1−1
@@ -94,7 +94,7 @@
94; Variables
94; Variables
95
95
96((identifier) @constant
96((identifier) @constant
97− (#match? @constant "^[A-Z_]{2,}$"))
97+ (#match? @constant "^_*[A-Z][A-Z\\d_]*$"))
98
98
99((identifier) @type
99((identifier) @type
100 (#match? @type "^[A-Z]"))
100 (#match? @type "^[A-Z]"))