mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(rust): highlight SNAKE_CASE scoped identifier name as @constant
This commit is contained in:
parent
a57d2a599b
commit
fa9fe9a95b
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue