aboutsummaryrefslogtreecommitdiff
path: root/src/syntax_kinds/generated.rs.tera
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-01 08:40:07 +0100
committerAleksey Kladov <[email protected]>2018-08-01 08:40:07 +0100
commit966e9db2b83802dfb55d55bd3a26e69dced1bbd7 (patch)
tree6d3bda084eab1221bcad7602aa26a2c307850a72 /src/syntax_kinds/generated.rs.tera
parentb9189ed2db8cb1934e677a17fcc6282c66306df1 (diff)
Extract libeditor
Diffstat (limited to 'src/syntax_kinds/generated.rs.tera')
-rw-r--r--src/syntax_kinds/generated.rs.tera10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/syntax_kinds/generated.rs.tera b/src/syntax_kinds/generated.rs.tera
index d719c8312..4e2ee56c3 100644
--- a/src/syntax_kinds/generated.rs.tera
+++ b/src/syntax_kinds/generated.rs.tera
@@ -24,6 +24,16 @@ pub enum SyntaxKind {
24use self::SyntaxKind::*; 24use self::SyntaxKind::*;
25 25
26impl SyntaxKind { 26impl SyntaxKind {
27 pub fn is_keyword(self) -> bool {
28 match self {
29{%- for kw in concat(a=keywords, b=contextual_keywords) %}
30 | {{kw | upper}}_KW
31{%- endfor %}
32 => true,
33 _ => false
34 }
35 }
36
27 pub(crate) fn info(self) -> &'static SyntaxInfo { 37 pub(crate) fn info(self) -> &'static SyntaxInfo {
28 match self { 38 match self {
29{%- for t in concat(a=single_byte_tokens, b=multi_byte_tokens) %} 39{%- for t in concat(a=single_byte_tokens, b=multi_byte_tokens) %}