From f692be853b485c036814fa22282943bc0437247c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 25 Sep 2021 14:18:59 +0300 Subject: [PATCH] minor: link my own pratt parsing article :-) --- crates/parser/src/grammar/expressions.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/parser/src/grammar/expressions.rs b/crates/parser/src/grammar/expressions.rs index 9f3e11819f92..2bec8577f0ce 100644 --- a/crates/parser/src/grammar/expressions.rs +++ b/crates/parser/src/grammar/expressions.rs @@ -161,7 +161,6 @@ pub(super) fn stmt(p: &mut Parser, with_semi: StmtWithSemi, prefer_expr: bool) { } pub(super) fn expr_block_contents(p: &mut Parser) { - // This is checked by a validator attributes::inner_attrs(p); while !p.at(EOF) && !p.at(T!['}']) { @@ -197,7 +196,7 @@ struct Restrictions { /// Binding powers of operators for a Pratt parser. /// -/// See +/// See #[rustfmt::skip] fn current_op(p: &Parser) -> (u8, SyntaxKind) { const NOT_AN_OP: (u8, SyntaxKind) = (0, T![@]);