aboutsummaryrefslogtreecommitdiff
path: root/src/syntax_kinds/generated.rs.tera
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-09 00:26:22 +0100
committerAleksey Kladov <[email protected]>2018-08-09 00:26:22 +0100
commit08475a690ccc26ab5fd5e809a8cd3a19fcf5aff4 (patch)
tree81a7395c814dc97ada0e1065896c73e3b1bb2cee /src/syntax_kinds/generated.rs.tera
parent7974c6b1a0b2d07c5a337c89a70a51e01f629778 (diff)
Simplify string optimizations
Diffstat (limited to 'src/syntax_kinds/generated.rs.tera')
-rw-r--r--src/syntax_kinds/generated.rs.tera13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/syntax_kinds/generated.rs.tera b/src/syntax_kinds/generated.rs.tera
index 197f720e1..90618721a 100644
--- a/src/syntax_kinds/generated.rs.tera
+++ b/src/syntax_kinds/generated.rs.tera
@@ -69,18 +69,5 @@ impl SyntaxKind {
69 }; 69 };
70 Some(tok) 70 Some(tok)
71 } 71 }
72
73 pub(crate) fn static_text(self) -> Option<&'static str> {
74 let tok = match self {
75{%- for t in concat(a=single_byte_tokens, b=multi_byte_tokens) %}
76 {{t.1}} => "{{t.0}}",
77{%- endfor %}
78{% for kw in concat(a=keywords, b=contextual_keywords) %}
79 {{kw | upper}}_KW => "{{kw}}",
80{%- endfor %}
81 _ => return None,
82 };
83 Some(tok)
84 }
85} 72}
86 73