mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Gifs and screenshots for features in manual (syntax highlighting and typing)
This commit is contained in:
parent
75011bbccb
commit
d82176c146
2 changed files with 4 additions and 0 deletions
|
@ -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.
|
// 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.
|
// 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(
|
pub(crate) fn highlight(
|
||||||
db: &RootDatabase,
|
db: &RootDatabase,
|
||||||
file_id: FileId,
|
file_id: FileId,
|
||||||
|
|
|
@ -49,6 +49,8 @@ pub(crate) const TRIGGER_CHARS: &str = ".=>";
|
||||||
// ----
|
// ----
|
||||||
// "editor.formatOnType": true,
|
// "editor.formatOnType": true,
|
||||||
// ----
|
// ----
|
||||||
|
//
|
||||||
|
// image::https://user-images.githubusercontent.com/48062697/113166163-69758500-923a-11eb-81ee-eb33ec380399.gif[]
|
||||||
pub(crate) fn on_char_typed(
|
pub(crate) fn on_char_typed(
|
||||||
db: &RootDatabase,
|
db: &RootDatabase,
|
||||||
position: FilePosition,
|
position: FilePosition,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue