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 (helix-editor#6751)
  • Loading branch information
LowLevelLover authored and wes-adams committed Jul 3, 2023
1 parent 69635fa commit 884edad
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 884edad

Please sign in to comment.