aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAyomide Bamidele <[email protected]>2021-03-31 16:20:54 +0100
committerAyomide Bamidele <[email protected]>2021-03-31 16:20:54 +0100
commitd82176c146a80a92ed002c756dec388ce7414cac (patch)
tree73da752e9b4e388cbe02f6ba4333710a6327a4c6
parent75011bbccbf2e00092222a1071ba9111f834a4ae (diff)
Gifs and screenshots for features in manual (syntax highlighting and typing)
-rw-r--r--crates/ide/src/syntax_highlighting.rs2
-rw-r--r--crates/ide/src/typing.rs2
2 files changed, 4 insertions, 0 deletions
diff --git a/crates/ide/src/syntax_highlighting.rs b/crates/ide/src/syntax_highlighting.rs
index 67a10766b..591f1e80b 100644
--- a/crates/ide/src/syntax_highlighting.rs
+++ b/crates/ide/src/syntax_highlighting.rs
@@ -48,6 +48,8 @@ pub struct HlRange {
48// 48//
49// The general rule is that a reference to an entity gets colored the same way as the entity itself. 49// The general rule is that a reference to an entity gets colored the same way as the entity itself.
50// We also give special modifier for `mut` and `&mut` local variables. 50// 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[]
51pub(crate) fn highlight( 53pub(crate) fn highlight(
52 db: &RootDatabase, 54 db: &RootDatabase,
53 file_id: FileId, 55 file_id: FileId,
diff --git a/crates/ide/src/typing.rs b/crates/ide/src/typing.rs
index e10b7d98e..dc32bb594 100644
--- a/crates/ide/src/typing.rs
+++ b/crates/ide/src/typing.rs
@@ -49,6 +49,8 @@ pub(crate) const TRIGGER_CHARS: &str = ".=>";
49// ---- 49// ----
50// "editor.formatOnType": true, 50// "editor.formatOnType": true,
51// ---- 51// ----
52//
53// image::https://user-images.githubusercontent.com/48062697/113166163-69758500-923a-11eb-81ee-eb33ec380399.gif[]
52pub(crate) fn on_char_typed( 54pub(crate) fn on_char_typed(
53 db: &RootDatabase, 55 db: &RootDatabase,
54 position: FilePosition, 56 position: FilePosition,