File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/tools/rust-analyzer/lib/ungrammar Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " ungrammar"
33description = " A DSL for describing concrete syntax trees"
4- version = " 1.4 .0"
4+ version = " 1.5 .0"
55license = " MIT OR Apache-2.0"
66repository = " https://github.com/matklad/ungrammar"
77authors = [" Aleksey Kladov <aleksey.kladov@gmail.com>" ]
Original file line number Diff line number Diff line change @@ -372,13 +372,13 @@ BlockExpr =
372372 '}'
373373
374374RefExpr =
375- Attr* '&' ('raw' |'mut' | 'const') Expr
375+ Attr* '&' ('raw' | 'mut' | 'const') Expr
376376
377377TryExpr =
378378 Attr* Expr '?'
379379
380380EffectExpr =
381- Attr* Label? ('try' | 'unsafe' | 'async') BlockExpr
381+ Attr* Label? ('try' | 'unsafe' | 'async' | 'const' ) BlockExpr
382382
383383PrefixExpr =
384384 Attr* op:('-' | '!' | '*') Expr
@@ -582,6 +582,7 @@ Pat =
582582| SlicePat
583583| TuplePat
584584| TupleStructPat
585+ | ConstBlockPat
585586
586587LiteralPat =
587588 Literal
@@ -636,3 +637,6 @@ RestPat =
636637
637638MacroPat =
638639 MacroCall
640+
641+ ConstBlockPat =
642+ 'const' BlockExpr
You can’t perform that action at this time.
0 commit comments