Skip to content

Commit

Permalink
Fix highlighting on single-character Rust consts (#3927)
Browse files Browse the repository at this point in the history
Co-authored-by: Kirawi <67773714+kirawi@users.noreply.github.com>
Co-authored-by: Gavin Crawford <gavincrawford@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 21, 2022
1 parent 75362dc commit 1dd1476
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 1dd1476

Please sign in to comment.