diff options
author | George Fraser <george@fivetran.com> | 2020-05-10 19:26:19 +0100 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2020-05-10 21:11:14 +0100 |
commit | 63b75a40c8c9e1f24fbd21c423f62f303281b77c (patch) | |
tree | bef6f11c4190be0f0bfd27365630d701ea51bc55 /crates/ra_ide/src/syntax_highlighting | |
parent | 3f1c73633eb3e5d8a2df3a72dc772087cfb18be4 (diff) |
Color `for` as a regular keyword when it's part of impl _ for _
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting/tests.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting/tests.rs b/crates/ra_ide/src/syntax_highlighting/tests.rs index 7975755b2..eb43a23da 100644 --- a/crates/ra_ide/src/syntax_highlighting/tests.rs +++ b/crates/ra_ide/src/syntax_highlighting/tests.rs | |||
@@ -17,6 +17,16 @@ struct Foo { | |||
17 | pub y: i32, | 17 | pub y: i32, |
18 | } | 18 | } |
19 | 19 | ||
20 | trait Bar { | ||
21 | fn bar(&self) -> i32; | ||
22 | } | ||
23 | |||
24 | impl Bar for Foo { | ||
25 | fn bar(&self) -> i32 { | ||
26 | self.x | ||
27 | } | ||
28 | } | ||
29 | |||
20 | static mut STATIC_MUT: i32 = 0; | 30 | static mut STATIC_MUT: i32 = 0; |
21 | 31 | ||
22 | fn foo<'a, T>() -> T { | 32 | fn foo<'a, T>() -> T { |