Gifs and screenshots for features in manual (syntax highlighting and typing)

This commit is contained in:
Ayomide Bamidele 2021-03-31 16:20:54 +01:00
parent 75011bbccb
commit d82176c146
2 changed files with 4 additions and 0 deletions

View File

@ -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,

View File

@ -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,