Gifs and screenshots for features in manual

This commit is contained in:
Ayomide Bamidele 2021-03-31 00:08:10 +01:00
parent 95107a7ccf
commit 276022682b
24 changed files with 44 additions and 0 deletions

View file

@ -14,6 +14,8 @@ use syntax::{
//
// | VS Code | **Rust Analyzer: Find matching brace**
// |===
//
// image::https://user-images.githubusercontent.com/48062697/113065573-04298180-91b1-11eb-8dec-d4e2a202f304.gif[]
pub(crate) fn matching_brace(file: &SourceFile, offset: TextSize) -> Option<TextSize> {
const BRACES: &[SyntaxKind] =
&[T!['{'], T!['}'], T!['['], T![']'], T!['('], T![')'], T![<], T![>], T![|], T![|]];