From d82176c146a80a92ed002c756dec388ce7414cac Mon Sep 17 00:00:00 2001 From: Ayomide Bamidele <48062697+MozarellaMan@users.noreply.github.com> Date: Wed, 31 Mar 2021 16:20:54 +0100 Subject: [PATCH 1/3] Gifs and screenshots for features in manual (syntax highlighting and typing) --- crates/ide/src/syntax_highlighting.rs | 2 ++ crates/ide/src/typing.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/crates/ide/src/syntax_highlighting.rs b/crates/ide/src/syntax_highlighting.rs index 67a10766b2..591f1e80b9 100644 --- a/crates/ide/src/syntax_highlighting.rs +++ b/crates/ide/src/syntax_highlighting.rs @@ -48,6 +48,8 @@ pub struct HlRange { // // The general rule is that a reference to an entity gets colored the same way as the entity itself. // We also give special modifier for `mut` and `&mut` local variables. +// +// image::https://user-images.githubusercontent.com/48062697/113164457-06cfb980-9239-11eb-819b-0f93e646acf8.png[] pub(crate) fn highlight( db: &RootDatabase, file_id: FileId, diff --git a/crates/ide/src/typing.rs b/crates/ide/src/typing.rs index e10b7d98e3..dc32bb594d 100644 --- a/crates/ide/src/typing.rs +++ b/crates/ide/src/typing.rs @@ -49,6 +49,8 @@ pub(crate) const TRIGGER_CHARS: &str = ".=>"; // ---- // "editor.formatOnType": true, // ---- +// +// image::https://user-images.githubusercontent.com/48062697/113166163-69758500-923a-11eb-81ee-eb33ec380399.gif[] pub(crate) fn on_char_typed( db: &RootDatabase, position: FilePosition, From 4296cc331890ebf4222cdf8d94f9981d9c0bd20f Mon Sep 17 00:00:00 2001 From: Ayomide Bamidele <48062697+MozarellaMan@users.noreply.github.com> Date: Wed, 31 Mar 2021 16:39:04 +0100 Subject: [PATCH 2/3] Gif of "let = " typing assist --- crates/ide/src/typing.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ide/src/typing.rs b/crates/ide/src/typing.rs index dc32bb594d..11408d445a 100644 --- a/crates/ide/src/typing.rs +++ b/crates/ide/src/typing.rs @@ -51,6 +51,7 @@ pub(crate) const TRIGGER_CHARS: &str = ".=>"; // ---- // // image::https://user-images.githubusercontent.com/48062697/113166163-69758500-923a-11eb-81ee-eb33ec380399.gif[] +// image::https://user-images.githubusercontent.com/48062697/113171066-105c2000-923f-11eb-87ab-f4a263346567.gif[] pub(crate) fn on_char_typed( db: &RootDatabase, position: FilePosition, From 7bea1d8bfe0aa70673648e5fc93fe6c0fcd69150 Mon Sep 17 00:00:00 2001 From: Ayomide Bamidele <48062697+MozarellaMan@users.noreply.github.com> Date: Wed, 31 Mar 2021 18:45:15 +0100 Subject: [PATCH 3/3] Additional syntax highlighting screenshot in manual --- crates/ide/src/syntax_highlighting.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ide/src/syntax_highlighting.rs b/crates/ide/src/syntax_highlighting.rs index 591f1e80b9..9df8d21afc 100644 --- a/crates/ide/src/syntax_highlighting.rs +++ b/crates/ide/src/syntax_highlighting.rs @@ -50,6 +50,7 @@ pub struct HlRange { // We also give special modifier for `mut` and `&mut` local variables. // // image::https://user-images.githubusercontent.com/48062697/113164457-06cfb980-9239-11eb-819b-0f93e646acf8.png[] +// image::https://user-images.githubusercontent.com/48062697/113187625-f7f50100-9250-11eb-825e-91c58f236071.png[] pub(crate) fn highlight( db: &RootDatabase, file_id: FileId,