Skip to content

Commit

Permalink
Fix python highlights to support single character and alphanumeric co…
Browse files Browse the repository at this point in the history
…nstant identifier (#6751)
  • Loading branch information
LowLevelLover authored Apr 14, 2023
1 parent 5ec4119 commit bb27542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/queries/python/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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]"))
Expand Down

0 comments on commit bb27542

Please sign in to comment.