diff options
author | Aleksey Kladov <[email protected]> | 2020-07-30 19:16:04 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-30 19:21:32 +0100 |
commit | fcce07d2d1b07cf4578af65b00a243e743a67f05 (patch) | |
tree | a6a9437d26f62040d62921eca2f7aafb5d1233f3 /xtask/src | |
parent | e28ea81b2b68a61b5c5eec3c815172b17256a25f (diff) |
Finalize attribute grammar
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/codegen/rust.ungram | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index a97cc80e9..42ef2fb82 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram | |||
@@ -182,10 +182,7 @@ Visibility = | |||
182 | ')')? | 182 | ')')? |
183 | 183 | ||
184 | Attr = | 184 | Attr = |
185 | '#' '!'? '[' Path ('=' input:AttrInput)? ']' | 185 | '#' '!'? '[' Path ('=' Literal | TokenTree)? ']' |
186 | |||
187 | AttrInput = | ||
188 | Literal | TokenTree | ||
189 | 186 | ||
190 | ParenType = | 187 | ParenType = |
191 | '(' TypeRef ')' | 188 | '(' TypeRef ')' |