From e69c70e2a208fd89d4d49a104f5516c55546309e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 11 Aug 2018 10:05:26 +0300 Subject: ENUM_ITEM -> ENUM --- crates/libsyntax2/src/grammar.ron | 2 +- crates/libsyntax2/src/grammar/items/mod.rs | 2 +- crates/libsyntax2/src/syntax_kinds/generated.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/libsyntax2/src') diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron index 4d0343747..06a4eb6a7 100644 --- a/crates/libsyntax2/src/grammar.ron +++ b/crates/libsyntax2/src/grammar.ron @@ -109,7 +109,7 @@ Grammar( "FILE", "STRUCT", - "ENUM_ITEM", + "ENUM", "FUNCTION", "EXTERN_CRATE_ITEM", "MOD_ITEM", diff --git a/crates/libsyntax2/src/grammar/items/mod.rs b/crates/libsyntax2/src/grammar/items/mod.rs index 1125daed9..be4ff976a 100644 --- a/crates/libsyntax2/src/grammar/items/mod.rs +++ b/crates/libsyntax2/src/grammar/items/mod.rs @@ -175,7 +175,7 @@ fn items_without_modifiers(p: &mut Parser) -> Option { } ENUM_KW => { structs::enum_item(p); - ENUM_ITEM + ENUM } USE_KW => { use_item::use_item(p); diff --git a/crates/libsyntax2/src/syntax_kinds/generated.rs b/crates/libsyntax2/src/syntax_kinds/generated.rs index 7e7d00d9d..7d2fb60f6 100644 --- a/crates/libsyntax2/src/syntax_kinds/generated.rs +++ b/crates/libsyntax2/src/syntax_kinds/generated.rs @@ -109,7 +109,7 @@ pub enum SyntaxKind { SHEBANG, FILE, STRUCT, - ENUM_ITEM, + ENUM, FUNCTION, EXTERN_CRATE_ITEM, MOD_ITEM, @@ -344,7 +344,7 @@ impl SyntaxKind { SHEBANG => &SyntaxInfo { name: "SHEBANG" }, FILE => &SyntaxInfo { name: "FILE" }, STRUCT => &SyntaxInfo { name: "STRUCT" }, - ENUM_ITEM => &SyntaxInfo { name: "ENUM_ITEM" }, + ENUM => &SyntaxInfo { name: "ENUM" }, FUNCTION => &SyntaxInfo { name: "FUNCTION" }, EXTERN_CRATE_ITEM => &SyntaxInfo { name: "EXTERN_CRATE_ITEM" }, MOD_ITEM => &SyntaxInfo { name: "MOD_ITEM" }, -- cgit v1.2.3