aboutsummaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2018-01-28 09:07:26 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2018-01-28 09:07:26 +0000
commitbec9f091348386a38489110a26b279f752163034 (patch)
tree90ea82001ee09739ffa542d2a0a1bbb985559bb7 /src/bin
parent092f9a6b98a1b0b4724888f7b24bac6f6c5c1b79 (diff)
parentd3dedcace8a5fb1f047ecad05d23dce8745252d5 (diff)
Merge #18
18: Comments r=matklad a=matklad
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/gen.rs8
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");