aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/syntax_highlighting
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2020-05-10 19:26:19 +0100
committerGeorge Fraser <george@fivetran.com>2020-05-10 21:11:14 +0100
commit63b75a40c8c9e1f24fbd21c423f62f303281b77c (patch)
treebef6f11c4190be0f0bfd27365630d701ea51bc55 /crates/ra_ide/src/syntax_highlighting
parent3f1c73633eb3e5d8a2df3a72dc772087cfb18be4 (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.rs10
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
20trait Bar {
21 fn bar(&self) -> i32;
22}
23
24impl Bar for Foo {
25 fn bar(&self) -> i32 {
26 self.x
27 }
28}
29
20static mut STATIC_MUT: i32 = 0; 30static mut STATIC_MUT: i32 = 0;
21 31
22fn foo<'a, T>() -> T { 32fn foo<'a, T>() -> T {