File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " ungrammar"
3
3
description = " A DSL for describing concrete syntax trees"
4
- version = " 1.4 .0"
4
+ version = " 1.5 .0"
5
5
license = " MIT OR Apache-2.0"
6
6
repository = " https://github.com/matklad/ungrammar"
7
7
authors = [
" Aleksey Kladov <[email protected] >" ]
Original file line number Diff line number Diff line change @@ -372,13 +372,13 @@ BlockExpr =
372
372
'}'
373
373
374
374
RefExpr =
375
- Attr* '&' ('raw' |'mut' | 'const') Expr
375
+ Attr* '&' ('raw' | 'mut' | 'const') Expr
376
376
377
377
TryExpr =
378
378
Attr* Expr '?'
379
379
380
380
EffectExpr =
381
- Attr* Label? ('try' | 'unsafe' | 'async') BlockExpr
381
+ Attr* Label? ('try' | 'unsafe' | 'async' | 'const' ) BlockExpr
382
382
383
383
PrefixExpr =
384
384
Attr* op:('-' | '!' | '*') Expr
@@ -582,6 +582,7 @@ Pat =
582
582
| SlicePat
583
583
| TuplePat
584
584
| TupleStructPat
585
+ | ConstBlockPat
585
586
586
587
LiteralPat =
587
588
Literal
@@ -636,3 +637,6 @@ RestPat =
636
637
637
638
MacroPat =
638
639
MacroCall
640
+
641
+ ConstBlockPat =
642
+ 'const' BlockExpr
You can’t perform that action at this time.
0 commit comments