From f82ce500a9c72a4153850f15e17b60388e95b2af Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Wed, 3 Feb 2021 13:40:24 +0100 Subject: Fix spelling mistakes in docs/dev --- docs/dev/syntax.md | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'docs/dev/syntax.md') diff --git a/docs/dev/syntax.md b/docs/dev/syntax.md index 1edafab68..737cc7a72 100644 --- a/docs/dev/syntax.md +++ b/docs/dev/syntax.md @@ -92,19 +92,18 @@ FN@0..17 R_PAREN@5..6 ")" WHITESPACE@6..7 " " BLOCK_EXPR@7..17 - BLOCK@7..17 - L_CURLY@7..8 "{" - WHITESPACE@8..9 " " - BIN_EXPR@9..15 - LITERAL@9..11 - INT_NUMBER@9..11 "90" - WHITESPACE@11..12 " " - PLUS@12..13 "+" - WHITESPACE@13..14 " " - LITERAL@14..15 - INT_NUMBER@14..15 "2" - WHITESPACE@15..16 " " - R_CURLY@16..17 "}" + L_CURLY@7..8 "{" + WHITESPACE@8..9 " " + BIN_EXPR@9..15 + LITERAL@9..11 + INT_NUMBER@9..11 "90" + WHITESPACE@11..12 " " + PLUS@12..13 "+" + WHITESPACE@13..14 " " + LITERAL@14..15 + INT_NUMBER@14..15 "2" + WHITESPACE@15..16 " " + R_CURLY@16..17 "}" ``` #### Optimizations @@ -387,7 +386,7 @@ trait HasVisibility: AstNode { fn visibility(&self) -> Option; } -impl HasVisbility for FnDef { +impl HasVisibility for FnDef { fn visibility(&self) -> Option { self.syntax.children().find_map(Visibility::cast) } @@ -527,7 +526,7 @@ In practice, incremental reparsing doesn't actually matter much for IDE use-case ### Parsing Algorithm -We use a boring hand-crafted recursive descent + pratt combination, with a special effort of continuting the parsing if an error is detected. +We use a boring hand-crafted recursive descent + pratt combination, with a special effort of continuing the parsing if an error is detected. ### Parser Recap -- cgit v1.2.3