Unnamed repository; edit this file 'description' to name the repository.
Fix highlighting on single-character Rust consts (#3927)
Co-authored-by: Kirawi <[email protected]> Co-authored-by: Gavin Crawford <[email protected]>
gavincrawford 2022-09-22
parent 75362dc · commit 1dd1476
-rw-r--r--runtime/queries/rust/highlights.scm2
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()`)