mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
highlights(rust): distinguish between "for" in loops and impl_item
Fixes #3641
This commit is contained in:
parent
9c3a1366bc
commit
53742779e3
2 changed files with 19 additions and 2 deletions
|
|
@ -211,13 +211,15 @@
|
|||
[
|
||||
"break"
|
||||
"continue"
|
||||
"for"
|
||||
"in"
|
||||
"loop"
|
||||
"while"
|
||||
] @repeat
|
||||
|
||||
|
||||
(impl_item
|
||||
"for" @keyword)
|
||||
(for_expression
|
||||
"for" @repeat)
|
||||
|
||||
;;; Operators & Punctuation
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue