Skip to content

refactor: record fenced code mappings during parsing - #136

Merged
luojiyin1987 merged 4 commits into
masterfrom
refactor/parser-owned-fenced-code-map
Sep 28, 2026
Merged

luojiyin1987 merged 4 commits into
masterfrom
refactor/parser-owned-fenced-code-map

Conversation

@luojiyin1987

@luojiyin1987 luojiyin1987 commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • record fenced code mappings from parser events
  • preserve the standard fenced code AST behavior
  • record empty fenced code offsets during the fence lifecycle
  • preserve opening-indent semantics for closing fence offsets
  • require source input for production and benchmark recording
  • remove post-parse fenced code inference
  • keep indented code mapping unchanged

Tests

  • pnpm run lint
  • pnpm run build
  • pnpm run test
  • node scripts/bench-source-map.mjs --smoke
  • node scripts/bench-parse.mjs --smoke

@luojiyin1987
luojiyin1987 merged commit 2f18852 into master Sep 28, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant