Skip to content

Commit

Permalink
Fix highlighting on single-character Rust consts (helix-editor#3927)
Browse files Browse the repository at this point in the history
Co-authored-by: Kirawi <[email protected]>
Co-authored-by: Gavin Crawford <[email protected]>
  • Loading branch information
3 people authored and Shekhinah Memmel committed Dec 11, 2022
1 parent 53659d4 commit ee14292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/queries/rust/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
; -------

((identifier) @constant
(#match? @constant "^[A-Z][A-Z\\d_]+$"))
(#match? @constant "^[A-Z][A-Z\\d_]*$"))

; ---
; PascalCase identifiers in call_expressions (e.g. `Ok()`)
Expand Down

0 comments on commit ee14292

Please sign in to comment.