Fix highlighting on single-character Rust consts (#3927)

Co-authored-by: Kirawi <67773714+kirawi@users.noreply.github.com>
Co-authored-by: Gavin Crawford <gavincrawford@users.noreply.github.com>
pull/3932/head
gavincrawford 2 years ago committed by GitHub
parent 75362dce83
commit 1dd1476a9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -183,7 +183,7 @@
; ------- ; -------
((identifier) @constant ((identifier) @constant
(#match? @constant "^[A-Z][A-Z\\d_]+$")) (#match? @constant "^[A-Z][A-Z\\d_]*$"))
; --- ; ---
; PascalCase identifiers in call_expressions (e.g. `Ok()`) ; PascalCase identifiers in call_expressions (e.g. `Ok()`)

Loading…
Cancel
Save