diff options
author | gavincrawford | 2022-09-21 22:55:28 +0000 |
---|---|---|
committer | GitHub | 2022-09-21 22:55:28 +0000 |
commit | 1dd1476a9eea7f6cb7d66239782e032b3c8672aa (patch) | |
tree | 5b6a485c0613925d54a48153ec5c106c6f59938c /runtime | |
parent | 75362dce8315c3fe20b9702d1ecdc0315112558e (diff) |
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>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/queries/rust/highlights.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm index 78a7abf0..7d0afcde 100644 --- a/runtime/queries/rust/highlights.scm +++ b/runtime/queries/rust/highlights.scm @@ -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()`) |