Skip to content

Commit 6ae4892

Browse files
bors[bot]Veykril
andauthored
Merge #20
20: Replace self/super/crate in PathSegment with NameRef r=matklad a=Veykril Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2 parents 7c5f3f9 + 8ba7ead commit 6ae4892

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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.7.0"
4+
version = "1.8.0"
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/matklad/ungrammar"
77
authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"]

rust.ungram

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Name =
2424
'ident'
2525

2626
NameRef =
27-
'ident' | 'int_number'
27+
'ident' | 'int_number' | 'self' | 'super' | 'crate'
2828

2929
Lifetime =
3030
'lifetime_ident'
@@ -33,8 +33,7 @@ Path =
3333
(qualifier:Path '::')? segment:PathSegment
3434

3535
PathSegment =
36-
'crate' | 'self' | 'super'
37-
| '::'? NameRef
36+
'::'? NameRef
3837
| NameRef GenericArgList?
3938
| NameRef ParamList RetType?
4039
| '<' PathType ('as' PathType)? '>'

0 commit comments

Comments
 (0)