First request after an edit −19 % (§63.2, N1 of the 0.52.0 review): the flush split on the timing line (rebuild{lex parse defines analyze external lines publish documents}) named lex 29 + parse 26 of a 100 ms flush and no second lint or analysis; the lexer's two phases fused (the intermediate Vec<RawTok> gone), Parser::skip for the 178 bump() sites that discarded the token, a first-byte test in front of the operator table (tokenize 27.8 → 11.6 ms). Pinmux first menu after didChange 109 → 88 ms paired; every other row within noise; RSS not up. Token stream, diagnostics, AST and symbols digested over 4 807 files: 0 differ (re-derived by QA against a rebuilt 1b8723c); five gap fuzzers at their pins; corpus and opentitan byte-identical. Lead: an orphan trailing comment leads the next token instead of vanishing (unreachable, kept as a rule). QA: 16 attack tests, the flat-groups guard the harness relies on.
ci / checks (push) Successful in 1m16s
ci / corpus (push) Successful in 34s

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5.1 committed 2026-09-12 03:11:59 -07:00
1 parent 1b8723ca1f
commit c82978c3db
30 files changed
+1513 -260

No files matched your search

+8 -8
View File
@@ -64,7 +64,7 @@ impl<'a> Parser<'a> {
// Each of the four gaps inside a `? :` can hold comments; kept
// apart so none of them drifts across the `?` or the `:`.
let before_question = self.take_around(mark);
self.bump();
self.skip();
let after_question = self.take_around(mark);
let then = self.parse_expr()?;
let before_colon = self.take_around(mark);
@@ -144,7 +144,7 @@ impl<'a> Parser<'a> {
// The word is an operator like any other, and keeps the
// comments written on either side of it the same way.
let before = self.take_around(mark);
self.bump();
self.skip();
let after = self.take_around(mark);
let comments = Box::new(BinaryComments { before, after });
// `x inside `MACRO` — the macro expands to the `{...}` set,
@@ -324,7 +324,7 @@ impl<'a> Parser<'a> {
let base = Box::new(base);
if self.cur().is_sym(".") || self.cur().is_sym("::") {
let scoped = self.cur().is_sym("::");
self.bump();
self.skip();
comments.after_open = self.take_gap();
let name = self.expect_ident()?;
let comments = Box::new(comments);
@@ -415,7 +415,7 @@ impl<'a> Parser<'a> {
before_open: self.take_before_open("("),
..CallComments::default()
};
self.bump();
self.skip();
let mut args = Vec::new();
if !self.cur().is_sym(")") {
let arg_start = self.here();
@@ -462,14 +462,14 @@ impl<'a> Parser<'a> {
},
);
} else if self.nth(1).is_sym("[") {
self.bump(); // with
self.skip(); // with
let range = self.parse_stream_range(comments)?;
expr = self.expr_at(
start,
ExprKind::StreamWith { base: Box::new(expr), range: Box::new(range) },
);
} else {
self.bump(); // with
self.skip(); // with
comments.after_kw = self.take_before_open("(");
// `( expression )` — an ordinary parenthesized primary,
// which is what IEEE 1800 §7.12 spells here.
@@ -511,9 +511,9 @@ impl<'a> Parser<'a> {
},
);
} else {
self.bump(); // '
self.skip(); // '
comments.after_tick = self.take_gap();
self.bump(); // (
self.skip(); // (
comments.after_open = self.take_gap();
let inner = self.parse_expr()?;
comments.before_close = self.gap_before(")");