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

@@ -52,7 +52,7 @@ impl<'a> Parser<'a> {
// The gap in front of the `|` belongs to the alternative it opens,
// so it prints on the bar's own side of the previous one.
let before_bar = self.take_gap();
self.bump();
self.skip();
alternatives.push(self.parse_alternative(before_bar)?);
}
let span = self.span_from(start);
@@ -107,8 +107,8 @@ impl<'a> Parser<'a> {
let mut weight = None;
if self.at_weight_op() {
before_weight = self.take_gap();
self.bump(); // :
self.bump(); // =
self.skip(); // :
self.skip(); // =
weight = Some(self.parse_weight()?);
}
Ok(Alternative { before_bar, after_bar, items, before_weight, weight })
@@ -170,7 +170,7 @@ impl<'a> Parser<'a> {
return self.parse_rs_if();
}
if t.is_kw("repeat") {
self.bump();
self.skip();
let after_kw = self.take_before_open("(");
self.expect_sym("(")?;
let count = self.parse_expr()?;
@@ -240,7 +240,7 @@ impl<'a> Parser<'a> {
// A `default` arm may write no `:` at all (§18.17.4).
let has_colon = self.cur().is_sym(":");
if has_colon {
self.bump();
self.skip();
} else if !is_default {
return self.error("expected `:` in a randsequence case arm");
}
@@ -271,7 +271,7 @@ impl<'a> Parser<'a> {
let after_rand = self.take_gap();
self.expect_kw("join")?;
let weight = if self.cur().is_sym("(") {
self.bump();
self.skip();
let e = self.parse_expr()?;
self.expect_sym(")")?;
Some(e)
@@ -292,7 +292,7 @@ impl<'a> Parser<'a> {
let has_parens = self.cur().is_sym("(");
let mut args = Vec::new();
if has_parens {
self.bump();
self.skip();
if !self.cur().is_sym(")") {
let first = self.parse_expr_item()?;
args = self.parse_expr_list(first, ")")?;