From 3b70acad0106e4ffe5ee68d565c9130b5b271e22 Mon Sep 17 00:00:00 2001 From: Josh Robson Chase Date: Wed, 23 Jan 2019 13:14:34 -0500 Subject: Use IDENT for both raw and normal idents --- crates/ra_syntax/src/syntax_kinds/generated.rs | 10 ---------- crates/ra_syntax/src/syntax_kinds/generated.rs.tera | 9 --------- 2 files changed, 19 deletions(-) (limited to 'crates/ra_syntax/src/syntax_kinds') diff --git a/crates/ra_syntax/src/syntax_kinds/generated.rs b/crates/ra_syntax/src/syntax_kinds/generated.rs index aa1ab3326..06faf7557 100644 --- a/crates/ra_syntax/src/syntax_kinds/generated.rs +++ b/crates/ra_syntax/src/syntax_kinds/generated.rs @@ -105,7 +105,6 @@ pub enum SyntaxKind { UNION_KW, ERROR, IDENT, - RAW_IDENT, UNDERSCORE, WHITESPACE, INT_NUMBER, @@ -369,7 +368,6 @@ impl SyntaxKind { UNION_KW => &SyntaxInfo { name: "UNION_KW" }, ERROR => &SyntaxInfo { name: "ERROR" }, IDENT => &SyntaxInfo { name: "IDENT" }, - RAW_IDENT => &SyntaxInfo { name: "RAW_IDENT" }, UNDERSCORE => &SyntaxInfo { name: "UNDERSCORE" }, WHITESPACE => &SyntaxInfo { name: "WHITESPACE" }, INT_NUMBER => &SyntaxInfo { name: "INT_NUMBER" }, @@ -565,12 +563,4 @@ impl SyntaxKind { }; Some(tok) } - - pub(crate) fn is_ident(&self) -> bool { - match self { - | IDENT - | RAW_IDENT => true, - _ => false, - } - } } diff --git a/crates/ra_syntax/src/syntax_kinds/generated.rs.tera b/crates/ra_syntax/src/syntax_kinds/generated.rs.tera index 83787f820..21f9444b1 100644 --- a/crates/ra_syntax/src/syntax_kinds/generated.rs.tera +++ b/crates/ra_syntax/src/syntax_kinds/generated.rs.tera @@ -74,13 +74,4 @@ impl SyntaxKind { }; Some(tok) } - - pub(crate) fn is_ident(&self) -> bool { - match self { -{%- for kind in ident_tokens %} - | {{kind}} -{%- endfor %} => true, - _ => false, - } - } } -- cgit v1.2.3