fix(rust): highlight SNAKE_CASE scoped identifier name as @constant

This commit is contained in:
Jaehwang Jung 2023-04-08 14:23:05 +09:00 committed by Stephan Seitz
parent a57d2a599b
commit fa9fe9a95b

View file

@ -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)