From fa9fe9a95ba481e26e11eede4657f8c5350a0eaa Mon Sep 17 00:00:00 2001 From: Jaehwang Jung Date: Sat, 8 Apr 2023 14:23:05 +0900 Subject: [PATCH] fix(rust): highlight SNAKE_CASE scoped identifier name as @constant --- queries/rust/highlights.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/queries/rust/highlights.scm b/queries/rust/highlights.scm index 1a9330a70..6c4491a02 100644 --- a/queries/rust/highlights.scm +++ b/queries/rust/highlights.scm @@ -82,6 +82,9 @@ ((scoped_identifier name: (identifier) @type) (#lua-match? @type "^[A-Z]")) +((scoped_identifier + name: (identifier) @constant) + (#lua-match? @constant "^[A-Z][A-Z%d_]*$")) [ (crate)