diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-10-15 02:29:32 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-10-15 04:02:20 -0700 |
| commit | 53742779e390d8e0363ac7b253f9a3cf73fc498d (patch) | |
| tree | c56e4ace92dda0bd5dd2d162c9b932919e036b44 /queries | |
| parent | 9c3a1366bcaa476ee058fac5b75b8f09a590d8af (diff) | |
highlights(rust): distinguish between "for" in loops and impl_item
Fixes #3641
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/rust/highlights.scm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/queries/rust/highlights.scm b/queries/rust/highlights.scm index db5e3982..c08912be 100644 --- a/queries/rust/highlights.scm +++ b/queries/rust/highlights.scm @@ -211,13 +211,15 @@ [ "break" "continue" - "for" "in" "loop" "while" ] @repeat - +(impl_item + "for" @keyword) +(for_expression + "for" @repeat) ;;; Operators & Punctuation |
