aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/syntax_kinds
diff options
context:
space:
mode:
authorJosh Robson Chase <[email protected]>2019-01-23 18:14:34 +0000
committerJosh Robson Chase <[email protected]>2019-01-23 18:19:49 +0000
commit3b70acad0106e4ffe5ee68d565c9130b5b271e22 (patch)
tree72b32afb919c5317219c0891ced8c9725d622bbc /crates/ra_syntax/src/syntax_kinds
parent1cd6d6539a9d85bc44db364bb9165e6d9253790d (diff)
Use IDENT for both raw and normal idents
Diffstat (limited to 'crates/ra_syntax/src/syntax_kinds')
-rw-r--r--crates/ra_syntax/src/syntax_kinds/generated.rs10
-rw-r--r--crates/ra_syntax/src/syntax_kinds/generated.rs.tera9
2 files changed, 0 insertions, 19 deletions
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 {
105 UNION_KW, 105 UNION_KW,
106 ERROR, 106 ERROR,
107 IDENT, 107 IDENT,
108 RAW_IDENT,
109 UNDERSCORE, 108 UNDERSCORE,
110 WHITESPACE, 109 WHITESPACE,
111 INT_NUMBER, 110 INT_NUMBER,
@@ -369,7 +368,6 @@ impl SyntaxKind {
369 UNION_KW => &SyntaxInfo { name: "UNION_KW" }, 368 UNION_KW => &SyntaxInfo { name: "UNION_KW" },
370 ERROR => &SyntaxInfo { name: "ERROR" }, 369 ERROR => &SyntaxInfo { name: "ERROR" },
371 IDENT => &SyntaxInfo { name: "IDENT" }, 370 IDENT => &SyntaxInfo { name: "IDENT" },
372 RAW_IDENT => &SyntaxInfo { name: "RAW_IDENT" },
373 UNDERSCORE => &SyntaxInfo { name: "UNDERSCORE" }, 371 UNDERSCORE => &SyntaxInfo { name: "UNDERSCORE" },
374 WHITESPACE => &SyntaxInfo { name: "WHITESPACE" }, 372 WHITESPACE => &SyntaxInfo { name: "WHITESPACE" },
375 INT_NUMBER => &SyntaxInfo { name: "INT_NUMBER" }, 373 INT_NUMBER => &SyntaxInfo { name: "INT_NUMBER" },
@@ -565,12 +563,4 @@ impl SyntaxKind {
565 }; 563 };
566 Some(tok) 564 Some(tok)
567 } 565 }
568
569 pub(crate) fn is_ident(&self) -> bool {
570 match self {
571 | IDENT
572 | RAW_IDENT => true,
573 _ => false,
574 }
575 }
576} 566}
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 {
74 }; 74 };
75 Some(tok) 75 Some(tok)
76 } 76 }
77
78 pub(crate) fn is_ident(&self) -> bool {
79 match self {
80{%- for kind in ident_tokens %}
81 | {{kind}}
82{%- endfor %} => true,
83 _ => false,
84 }
85 }
86} 77}