File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Expand file tree Collapse file tree 2 files changed +6
-11
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.8 .0"
4+ version = " 1.9 .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 2121//*************************//
2222
2323Name =
24- 'ident'
24+ 'ident' | 'self'
2525
2626NameRef =
2727 'ident' | 'int_number' | 'self' | 'super' | 'crate'
@@ -121,7 +121,7 @@ ItemList =
121121
122122ExternCrate =
123123 Attr* Visibility?
124- 'extern' 'crate' ( NameRef | 'self') Rename? ';'
124+ 'extern' 'crate' NameRef Rename? ';'
125125
126126Rename =
127127 'as' (Name | '_')
@@ -155,8 +155,8 @@ ParamList =
155155
156156SelfParam =
157157 Attr* (
158- ('&' Lifetime?)? 'mut'? 'self'
159- | 'mut'? 'self' ':' Type
158+ ('&' Lifetime?)? 'mut'? Name
159+ | 'mut'? Name ':' Type
160160 )
161161
162162Param =
@@ -292,12 +292,7 @@ WherePred =
292292 ('for' GenericParamList)? (Lifetime | Type) ':' TypeBoundList
293293
294294Visibility =
295- 'pub' ('('
296- 'super'
297- | 'self'
298- | 'crate'
299- | 'in' Path
300- ')')?
295+ 'pub' ('(' 'in'? Path ')')?
301296
302297Attr =
303298 '#' '!'? '[' Path ('=' Literal | TokenTree)? ']'
You can’t perform that action at this time.
0 commit comments