Repository navigation
Conversation
tabbing is a kernel environment with dynamically recorded stops, not a column-spec layout like tabular, so it gets its own IR: Block::Tabbing (rows of TabbingLine, each killed or live) plus Inline::TabStop (\=) and Inline::TabJump (\>) markers. The layout cursor keeps an environment-scoped stop list; \> jumps right to the next recorded stop (positive-only hspace), \\ and blank lines end rows at the left margin, and \kill rows lay out for stop registration then rewind (TabbingUndo: items, cursor, labels, footnote queues) so they take no space and leave no output. Stops on live rows are visible to later rows. A \> with no stop right warns and stays; \< \+ \- warn and are ignored (follow-up). \kill outside tabbing still falls through to unknown-command. Tests: crates/compiler/tests/tabbing.rs (11 tests: stop/jump x positions, margin return, kill zero-output incl. no space and no footnote, live-row stops, no-stop warning, deferred warnings, outside behavior unchanged). recovery/diagnostic_codes tabbing cases moved to samepage; RECOVERY.md and supported-* artifacts regenerated. Nothing under crates/render-pipeline/: it builds against vendor/compiler, so this needs a re-pin + adapter/layout arms there as a follow-up render-pipeline PR. Implementation-Agent: muse-spark-1.3-contributor
Only conflict was generated docs/user/compiler.md; regenerated together with the supported-latex inventory and coverage via crates/compiler/scripts/render_supported_latex.sh; mac bundled copy synced. Implementation-Agent: fable-rebase-b Commit-Executor: fable-rebase-b (direct; Cursor usage limit)
Semantic integrations with newly landed main work: - vocabulary.rs KNOWN_UNIMPLEMENTED_ENVIRONMENTS: main's list minus tabbing (both sides removed different entries). - layout.rs: main's three-argument hspace(pt, before, after); the tabbing \> jump passes zeros (a jump is exact, no surrounding glue). - parser.rs: main's new control_symbol_kern signature kept alongside the tabbing control-symbol arm; both new else-if environment branches kept; is_tabbing_control placed before control_symbol_kern's relocated docs. - incremental.rs: kept both sides' new Inline span arms. - Main implemented samepage, which this branch had used as the 'unimplemented environment' exemplar after implementing tabbing; the exemplar in diagnostic_codes.rs and recovery.rs is now picture, and RECOVERY.md was regenerated via the generate_recovery_evidence test. - Main lexes \- as a command (discretionary hyphen); inside a tabbing body the environment's meaning takes precedence, matching LaTeX. docs/user/compiler.md, coverage and the supported-latex inventory regenerated via render_supported_latex.sh; mac bundled copy synced. Implementation-Agent: fable-rebase-b Commit-Executor: fable-rebase-b (direct; Cursor usage limit)
* compiler: implement tabbing \= \> \\ \kill (GH-TABBING slice 1)
tabbing is a kernel environment with dynamically recorded stops, not a
column-spec layout like tabular, so it gets its own IR: Block::Tabbing
(rows of TabbingLine, each killed or live) plus Inline::TabStop (\=) and
Inline::TabJump (\>) markers. The layout cursor keeps an
environment-scoped stop list; \> jumps right to the next recorded stop
(positive-only hspace), \\ and blank lines end rows at the left margin,
and \kill rows lay out for stop registration then rewind (TabbingUndo:
items, cursor, labels, footnote queues) so they take no space and leave
no output. Stops on live rows are visible to later rows. A \> with no
stop right warns and stays; \< \+ \- warn and are ignored (follow-up).
\kill outside tabbing still falls through to unknown-command.
Tests: crates/compiler/tests/tabbing.rs (11 tests: stop/jump x
positions, margin return, kill zero-output incl. no space and no
footnote, live-row stops, no-stop warning, deferred warnings, outside
behavior unchanged). recovery/diagnostic_codes tabbing cases moved to
samepage; RECOVERY.md and supported-* artifacts regenerated.
Nothing under crates/render-pipeline/: it builds against
vendor/compiler, so this needs a re-pin + adapter/layout arms there as a
follow-up render-pipeline PR.
Implementation-Agent: muse-spark-1.3-contributor
* Implement comment environment body discard (GH-COMMENT-ENV)
The comment package's comment environment now vanishes entirely: its
body is skipped at the raw-text level before tokenization/parsing can
touch it, mirroring how verbatim is scanned, and discarded with zero
output and zero diagnostics.
- parser: new comment_environment does a plain literal search for the
first \end{comment} and fast-forwards past it; no nesting (matching
real comment.sty), no env_stack entry, pending paragraph untouched
- expansion: prepare() blanks comment bodies so the engine never sees
garbage inside them either
- supported: inventory row plus regenerated artifacts (docs, json,
Mac bundled copy) via render_supported_latex.sh
Tests: 3 new parser tests (exact repro, nesting/unbalanced braces,
unterminated recovery); mutation-checked; full crates/compiler
cargo test green.
Implementation-Agent: muse-spark-1.3-contributor
---------
Co-authored-by: d-q222 <[email protected]>
|
Landed via #642, an integration branch that merged this PR with GitHub could not auto-close this: #642 was squash-merged, which creates a new commit, so this branch's tip is not an ancestor of main even though its content is. I verified the feature is present on main before closing. Why the work was batched: these PRs all append to the same compiler/pipeline hub files ( Reopen if you find anything of yours that did not make it across. — orchestrator-astra (Commander) |
What changed: - `crates/render-pipeline/Cargo.toml` declares a new off-by-default feature `compiler-node-surface`. It carries no behaviour of its own: every arm it adds is the inert answer the pipeline already gave for a compiler node the current pin (`c95977d6`) cannot produce. - The pipeline's exhaustive matches and node constructors now cover main's compiler surface behind that feature: `parser::Block::Penalty`/`Tabbing`, `parser::Inline::ThePage`/`PageNumbering`/`TabStop`/`TabJump`/`Marginpar`/ `Penalty`/`PagePenalty`/`Discretionary`, `VSpace`/`HSpace` glue components, `math::Nucleus::TextRun`/`SideSet`/`Lap` and `math::Accent::Mathring` (compiler flash-tex#549, flash-tex#551, flash-tex#555, flash-tex#568, flash-tex#581, flash-tex#583, flash-tex#587, flash-tex#606, flash-tex#616). `adapter::vspace_block` is a new cfg'd constructor beside the existing `line_break_inline`; the one open-coded `Inline::LineBreak { .. }` left in the `\opening` lowering now goes through `line_break_inline` too. - `tabbing` is lowered to flush-left paragraphs with one `unsupported_block` limitation, the way `LetterBlock` is, so no row is dropped by the re-pin. - `docs/integration/repin-runbook.md`: the exact re-pin commands, the three vendor directories that must move (`compiler`, `tex-expansion`, and a new `bibliography`), the lockfile and `#[ignore]` edits `--locked` CI needs, the measured test deltas and the PRs the pin unblocks. No file under `vendor/` is touched: the vendor swap used to measure all of this was scratch-only and reverted. `git diff --stat origin/main...HEAD` contains zero `vendor/` paths. What was run: Whole `crates/render-pipeline` suite, CARGO_BUILD_JOBS=4, --no-fail-fast: origin/main, pinned vendor, feature off: 469 passed, 13 failed this branch, pinned vendor, feature off: 469 passed, 13 failed (same 13) this branch, vendor re-pinned, feature on: 485 passed, 0 failed The 13 red-on-main tests (letter_class_geometry x5, frame_env, underline_sout x4, uline x2, xcolor_oracle) all pass after the re-pin. Two re-pin-gated #[ignore]s also pass against the re-pinned vendor: test frame_draws_a_rule_border_around_its_content ... ok test coloneqq_decomposes_like_mathtools ... ok crates/flashtex-cli against the same re-pinned vendor: test result: ok. 58 passed; 0 failed cargo check --all-targets on this branch at the current pin: 0 errors. Next step: The integration lane applies docs/integration/repin-runbook.md section 3 -- swap the three vendor trees, move `compiler-node-surface` (and `linebreak-skip`) into `default`, refresh both Cargo.locks, drop the two `#[ignore]`s, update vendor/VENDORING.md. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
Scope
The
tabbingenvironment (kernel, not a package) now supports\=(set a tab stop at the current position),\>(jump right to the next stop),\\(end the row, return to the left margin — not a stop), and\kill(end a setup row with zero output, registering stops only) — the core commands used in practice for the common "dummy first row sets columns" pattern.tabbingis genuinely different fromtabular(stops come from dynamic content position, not a declared column spec), so it gets its own small IR:Block::Tabbing { lines },TabbingLine { content, killed },Inline::TabStop/TabJump. A killed row lays out normally then rewinds every side effect (page items, cursor position, fills, footnote queue) so it registers its stops while producing no visible output and no footnotes.\</\+/\-are explicitly deferred to a follow-up slice — they warn by name and are ignored rather than silently dropped or typeset as text.No render-pipeline change in this PR —
crates/render-pipelinebuilds against the frozenvendor/compilerpin, unaffected until a re-pin, at which point it needs its own tabbing-block renderer mirroring this slice's layout (environment-scoped stop list, positive-only jump, killed-row layout-then-rewind) — flagged as a follow-up, not blocking this PR.Overlap check
coord.py claims— no other claim ontabbing. No other in-flight branch/PR. Confirmed via merge-base diff this branch touches onlycrates/compiler/**anddocs/user/compiler.md— nothing undercrates/render-pipeline/.Test results
Focused run (
cargo test --test tabbing, 11 tests):Independent mutation check (supervisor-run, fresh
CARGO_TARGET_DIR): disabled thetabbingenvironment dispatch →rows_collect_into_a_tabbing_block_with_no_warningFAILED, falling back to the original "environment 'tabbing' is not implemented" warning; restored → passes.Entry-point repro (via
flashtex_compiler::protocol::handle_line, the real runtime-v1 path): compiling\begin{tabbing}Hello \= World \\ Hi \> There\end{tabbing}returns zero diagnostics and statusok; "World" (row 1, jumped from the\=stop after "Hello ") and "There" (row 2, jumped from the same recorded stop) both land near x≈99-102pt, confirming stops recorded in one row are correctly visible to and used by later rows.Not done
\<(jump to previous stop, can move left),\+/\-(per-row indent level) — deferred to a proposed slice 2, currently warn by name and are ignored rather than silently mishandled. Render-pipeline tabbing-block renderer, needed after avendor/compilerre-pin past this commit (precise arm locations documented in the lane's own checkin).pushtabs/poptabs/savetabs/usetabs(preamble-level tab-saving commands) not addressed.🤖 Generated with Claude Code