aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser/src/syntax_kind
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-02-21 10:45:10 +0000
committerAleksey Kladov <[email protected]>2019-02-21 10:45:10 +0000
commit46179230a05331b1debd4dfa3bb197fa38d92347 (patch)
tree416e333019e349bf4ee369f2548d9e6f6a9c67e9 /crates/ra_parser/src/syntax_kind
parentc47f9e2d37d4797550638e2a7a4fd3538e9edae9 (diff)
fix the test
Diffstat (limited to 'crates/ra_parser/src/syntax_kind')
-rw-r--r--crates/ra_parser/src/syntax_kind/generated.rs.tera4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_parser/src/syntax_kind/generated.rs.tera b/crates/ra_parser/src/syntax_kind/generated.rs.tera
index 837437136..f241a21a0 100644
--- a/crates/ra_parser/src/syntax_kind/generated.rs.tera
+++ b/crates/ra_parser/src/syntax_kind/generated.rs.tera
@@ -74,7 +74,7 @@ impl SyntaxKind {
74 EOF => &SyntaxInfo { name: "EOF" }, 74 EOF => &SyntaxInfo { name: "EOF" },
75 } 75 }
76 } 76 }
77 pub(crate) fn from_keyword(ident: &str) -> Option<SyntaxKind> { 77 pub fn from_keyword(ident: &str) -> Option<SyntaxKind> {
78 let kw = match ident { 78 let kw = match ident {
79{%- for kw in keywords %} 79{%- for kw in keywords %}
80 "{{kw}}" => {{kw | upper}}_KW, 80 "{{kw}}" => {{kw | upper}}_KW,
@@ -84,7 +84,7 @@ impl SyntaxKind {
84 Some(kw) 84 Some(kw)
85 } 85 }
86 86
87 pub(crate) fn from_char(c: char) -> Option<SyntaxKind> { 87 pub fn from_char(c: char) -> Option<SyntaxKind> {
88 let tok = match c { 88 let tok = match c {
89{%- for t in single_byte_tokens %} 89{%- for t in single_byte_tokens %}
90 '{{t.0}}' => {{t.1}}, 90 '{{t.0}}' => {{t.1}},