diff options
author | Aleksey Kladov <[email protected]> | 2018-08-08 21:09:40 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-08 21:09:40 +0100 |
commit | 1f6c442a3f2f660803f598d70f3f69b469637829 (patch) | |
tree | 6fa236aa3a1cdfaef96603c9f3c6a76ec78246c8 /src/syntax_kinds/generated.rs.tera | |
parent | 8c598d3d8a9d6fe0b8303250c88c252ff98883fd (diff) |
Fix panic with EOF token
Diffstat (limited to 'src/syntax_kinds/generated.rs.tera')
-rw-r--r-- | src/syntax_kinds/generated.rs.tera | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/syntax_kinds/generated.rs.tera b/src/syntax_kinds/generated.rs.tera index 4e2ee56c3..197f720e1 100644 --- a/src/syntax_kinds/generated.rs.tera +++ b/src/syntax_kinds/generated.rs.tera | |||
@@ -5,6 +5,13 @@ use super::SyntaxInfo; | |||
5 | /// The kind of syntax node, e.g. `IDENT`, `USE_KW`, or `STRUCT_DEF`. | 5 | /// The kind of syntax node, e.g. `IDENT`, `USE_KW`, or `STRUCT_DEF`. |
6 | #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] | 6 | #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] |
7 | pub enum SyntaxKind { | 7 | pub enum SyntaxKind { |
8 | // Technical SyntaxKinds: they appear temporally during parsing, | ||
9 | // but never end up in the final tree | ||
10 | #[doc(hidden)] | ||
11 | TOMBSTONE, | ||
12 | #[doc(hidden)] | ||
13 | EOF, | ||
14 | |||
8 | {%- for t in concat(a=single_byte_tokens, b=multi_byte_tokens) %} | 15 | {%- for t in concat(a=single_byte_tokens, b=multi_byte_tokens) %} |
9 | {{t.1}}, | 16 | {{t.1}}, |
10 | {%- endfor -%} | 17 | {%- endfor -%} |
@@ -14,12 +21,6 @@ pub enum SyntaxKind { | |||
14 | {% for t in concat(a=tokens, b=nodes) %} | 21 | {% for t in concat(a=tokens, b=nodes) %} |
15 | {{t}}, | 22 | {{t}}, |
16 | {%- endfor %} | 23 | {%- endfor %} |
17 | // Technical SyntaxKinds: they appear temporally during parsing, | ||
18 | // but never end up in the final tree | ||
19 | #[doc(hidden)] | ||
20 | TOMBSTONE, | ||
21 | #[doc(hidden)] | ||
22 | EOF, | ||
23 | } | 24 | } |
24 | use self::SyntaxKind::*; | 25 | use self::SyntaxKind::*; |
25 | 26 | ||