diff options
author | Aleksey Kladov <[email protected]> | 2018-08-01 08:44:23 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-01 08:44:23 +0100 |
commit | 490f8ba5b79049dd78c2e7895e8957b36dae3854 (patch) | |
tree | d1360448fdfff7c6dfaa70a3d93b68eb807fd389 /src/grammar/items/structs.rs | |
parent | 966e9db2b83802dfb55d55bd3a26e69dced1bbd7 (diff) |
tag enum variant names as names
Diffstat (limited to 'src/grammar/items/structs.rs')
-rw-r--r-- | src/grammar/items/structs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grammar/items/structs.rs b/src/grammar/items/structs.rs index 7ced542a4..67616eaad 100644 --- a/src/grammar/items/structs.rs +++ b/src/grammar/items/structs.rs | |||
@@ -49,7 +49,7 @@ pub(super) fn enum_item(p: &mut Parser) { | |||
49 | let var = p.start(); | 49 | let var = p.start(); |
50 | attributes::outer_attributes(p); | 50 | attributes::outer_attributes(p); |
51 | if p.at(IDENT) { | 51 | if p.at(IDENT) { |
52 | p.bump(); | 52 | name(p); |
53 | match p.current() { | 53 | match p.current() { |
54 | L_CURLY => named_fields(p), | 54 | L_CURLY => named_fields(p), |
55 | L_PAREN => pos_fields(p), | 55 | L_PAREN => pos_fields(p), |