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>
commit1dd1476a9eea7f6cb7d66239782e032b3c8672aa
authorgavincrawford <94875769+gavincrawford@users.noreply.github.com>
dateWed 21 Sep 2022, 16:55 (4 years ago)
parent75362dc
runtime/queries/rust/highlights.scm+1−1
@@ -183,7 +183,7 @@
183183; -------
184184
185185((identifier) @constant
186− (#match? @constant "^[A-Z][A-Z\\d_]+$"))
186+ (#match? @constant "^[A-Z][A-Z\\d_]*$"))
187187
188188; ---
189189; PascalCase identifiers in call_expressions (e.g. `Ok()`)