From 490f8ba5b79049dd78c2e7895e8957b36dae3854 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 1 Aug 2018 10:44:23 +0300 Subject: tag enum variant names as names --- src/grammar/items/structs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/grammar') 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) { let var = p.start(); attributes::outer_attributes(p); if p.at(IDENT) { - p.bump(); + name(p); match p.current() { L_CURLY => named_fields(p), L_PAREN => pos_fields(p), -- cgit v1.2.3