Skip to content

Commit 9290b82

Browse files
bors[bot]Veykril
andauthored
2 parents d0da6a6 + 6b1284e commit 9290b82

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/tools/rust-analyzer/lib/ungrammar/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "ungrammar"
33
description = "A DSL for describing concrete syntax trees"
4-
version = "1.9.2"
4+
version = "1.9.3"
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/matklad/ungrammar"
77
authors = ["Aleksey Kladov <[email protected]>"]

‎src/tools/rust-analyzer/lib/ungrammar/rust.ungram‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ AssocItem =
251251
Impl =
252252
Attr* Visibility?
253253
'default'? 'unsafe'?
254-
'impl' 'const'? GenericParamList? ('!'? trait:Type 'for')? self_ty:Type WhereClause?
254+
'impl' GenericParamList? ('const'? '!'? trait:Type 'for')? self_ty:Type WhereClause?
255255
AssocItemList
256256

257257
ExternBlock =
@@ -418,7 +418,7 @@ RecordExprFieldList =
418418
'}'
419419

420420
RecordExprField =
421-
Attr* NameRef (':' Expr)?
421+
Attr* (NameRef ':')? Expr
422422

423423
CallExpr =
424424
Attr* Expr ArgList

0 commit comments

Comments
 (0)