aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/syntax_highlighting.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-12-20 13:10:31 +0000
committerAleksey Kladov <[email protected]>2019-12-20 13:12:14 +0000
commitd057afb945b34cbefc1f0722f4dd0ff2758b760b (patch)
treea846479c2a8d5cbb0af8ed076f5b0e2aba09b5d0 /crates/ra_ide/src/syntax_highlighting.rs
parenta2ce8ab27526f544aca4acd019394d57aa735812 (diff)
Improve highlighting test
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting.rs')
-rw-r--r--crates/ra_ide/src/syntax_highlighting.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs
index 15e75709c..63f5d3cb0 100644
--- a/crates/ra_ide/src/syntax_highlighting.rs
+++ b/crates/ra_ide/src/syntax_highlighting.rs
@@ -282,6 +282,7 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
282 282
283.comment { color: #7F9F7F; } 283.comment { color: #7F9F7F; }
284.string { color: #CC9393; } 284.string { color: #CC9393; }
285.field { color: #94BFF3; }
285.function { color: #93E0E3; } 286.function { color: #93E0E3; }
286.parameter { color: #94BFF3; } 287.parameter { color: #94BFF3; }
287.text { color: #DCDCCC; } 288.text { color: #DCDCCC; }
@@ -327,7 +328,8 @@ fn main() {
327 328
328 let mut vec = Vec::new(); 329 let mut vec = Vec::new();
329 if true { 330 if true {
330 vec.push(Foo { x: 0, y: 1 }); 331 let x = 92;
332 vec.push(Foo { x, y: 1 });
331 } 333 }
332 unsafe { vec.set_len(0); } 334 unsafe { vec.set_len(0); }
333 335