aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/codegen
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-30 17:55:49 +0100
committerAleksey Kladov <[email protected]>2020-07-30 17:55:49 +0100
commitceca94536c7346287e533cd93467c7dc5bf1ed52 (patch)
tree4aea5452f0deaf653e74d3c2e2a32d20cb6d49b2 /xtask/src/codegen
parent3dce34aaf83c67836c94a526cb90eba8f36e3985 (diff)
Finalize visibility grammar
Diffstat (limited to 'xtask/src/codegen')
-rw-r--r--xtask/src/codegen/rust.ungram11
1 files changed, 8 insertions, 3 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram
index 4025f7f96..b773eaf8b 100644
--- a/xtask/src/codegen/rust.ungram
+++ b/xtask/src/codegen/rust.ungram
@@ -173,6 +173,14 @@ ConstParam =
173LifetimeParam = 173LifetimeParam =
174 Attr* 'lifetime' 174 Attr* 'lifetime'
175 175
176Visibility =
177 'pub' ('('
178 'super'
179 | 'self'
180 | 'crate'
181 | 'in' Path
182 ')')?
183
176ParenType = 184ParenType =
177 '(' TypeRef ')' 185 '(' TypeRef ')'
178 186
@@ -391,9 +399,6 @@ TupleStructPat =
391TuplePat = 399TuplePat =
392 '(' args:Pat* ')' 400 '(' args:Pat* ')'
393 401
394Visibility =
395 'pub' ('(' 'super' | 'self' | 'crate' | 'in' Path ')')?
396
397Name = 402Name =
398 'ident' 403 'ident'
399 404