Fix python highlights to support single character and alphanumeric constant identifier (#6751)

This commit is contained in:
Farzin 2023-04-14 04:04:40 +03:30 committed by GitHub
parent 5ec41195a0
commit bb27542199
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]"))