diff options
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/gen.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/gen.rs b/src/bin/gen.rs index 4b8a5afec..89609bd77 100644 --- a/src/bin/gen.rs +++ b/src/bin/gen.rs | |||
@@ -51,8 +51,12 @@ impl Grammar { | |||
51 | write!(acc, " {},\n", scream(kind)).unwrap(); | 51 | write!(acc, " {},\n", scream(kind)).unwrap(); |
52 | } | 52 | } |
53 | acc.push_str("\n"); | 53 | acc.push_str("\n"); |
54 | acc.push_str(" TOMBSTONE = !0 - 1,\n"); | 54 | acc.push_str(" // Technical SyntaxKinds: they appear temporally during parsing,\n"); |
55 | acc.push_str(" EOF = !0,\n"); | 55 | acc.push_str(" // but never end up in the final tree\n"); |
56 | acc.push_str(" #[doc(hidden)]\n"); | ||
57 | acc.push_str(" TOMBSTONE,\n"); | ||
58 | acc.push_str(" #[doc(hidden)]\n"); | ||
59 | acc.push_str(" EOF,\n"); | ||
56 | acc.push_str("}\n"); | 60 | acc.push_str("}\n"); |
57 | acc.push_str("pub(crate) use self::SyntaxKind::*;\n"); | 61 | acc.push_str("pub(crate) use self::SyntaxKind::*;\n"); |
58 | acc.push_str("\n"); | 62 | acc.push_str("\n"); |