diff options
author | Aleksey Kladov <[email protected]> | 2020-07-30 17:55:49 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-30 17:55:49 +0100 |
commit | ceca94536c7346287e533cd93467c7dc5bf1ed52 (patch) | |
tree | 4aea5452f0deaf653e74d3c2e2a32d20cb6d49b2 /xtask/src/codegen | |
parent | 3dce34aaf83c67836c94a526cb90eba8f36e3985 (diff) |
Finalize visibility grammar
Diffstat (limited to 'xtask/src/codegen')
-rw-r--r-- | xtask/src/codegen/rust.ungram | 11 |
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 = | |||
173 | LifetimeParam = | 173 | LifetimeParam = |
174 | Attr* 'lifetime' | 174 | Attr* 'lifetime' |
175 | 175 | ||
176 | Visibility = | ||
177 | 'pub' ('(' | ||
178 | 'super' | ||
179 | | 'self' | ||
180 | | 'crate' | ||
181 | | 'in' Path | ||
182 | ')')? | ||
183 | |||
176 | ParenType = | 184 | ParenType = |
177 | '(' TypeRef ')' | 185 | '(' TypeRef ')' |
178 | 186 | ||
@@ -391,9 +399,6 @@ TupleStructPat = | |||
391 | TuplePat = | 399 | TuplePat = |
392 | '(' args:Pat* ')' | 400 | '(' args:Pat* ')' |
393 | 401 | ||
394 | Visibility = | ||
395 | 'pub' ('(' 'super' | 'self' | 'crate' | 'in' Path ')')? | ||
396 | |||
397 | Name = | 402 | Name = |
398 | 'ident' | 403 | 'ident' |
399 | 404 | ||