Skip to content

Commit 25201b2

Browse files
Merge #8274
8274: Adding a few more gifs and screenshots for features in manual r=Veykril a=MozarellaMan Related #8267,#6539. Gifs are [here](#6539 (comment)) Finishing up the last PR, for the last two features that didn't have a visual example. For syntax highlighting, I wasn't able to find a theme that displayed the difference between an enum and struct, but I only tried a few apart from the default so there could be one out there! e.g., with the default light theme, `Ord` and `Ordering` in `use std::cmp::{Ord, Ordering}` had the same highlight colour. So I just went with displaying `mut` items being underlined. Co-authored-by: Ayomide Bamidele <[email protected]>
2 parents 3dbd8b5 + 7bea1d8 commit 25201b2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

crates/ide/src/syntax_highlighting.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ pub struct HlRange {
4848
//
4949
// The general rule is that a reference to an entity gets colored the same way as the entity itself.
5050
// We also give special modifier for `mut` and `&mut` local variables.
51+
//
52+
// image::https://user-images.githubusercontent.com/48062697/113164457-06cfb980-9239-11eb-819b-0f93e646acf8.png[]
53+
// image::https://user-images.githubusercontent.com/48062697/113187625-f7f50100-9250-11eb-825e-91c58f236071.png[]
5154
pub(crate) fn highlight(
5255
db: &RootDatabase,
5356
file_id: FileId,

crates/ide/src/typing.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ pub(crate) const TRIGGER_CHARS: &str = ".=>";
4949
// ----
5050
// "editor.formatOnType": true,
5151
// ----
52+
//
53+
// image::https://user-images.githubusercontent.com/48062697/113166163-69758500-923a-11eb-81ee-eb33ec380399.gif[]
54+
// image::https://user-images.githubusercontent.com/48062697/113171066-105c2000-923f-11eb-87ab-f4a263346567.gif[]
5255
pub(crate) fn on_char_typed(
5356
db: &RootDatabase,
5457
position: FilePosition,

0 commit comments

Comments
 (0)