Skip to content

Parse wider Unicode symbols in Clojure - #12

Merged
devin-ai-integration[bot] merged 1 commit into
masterfrom
devin/1796226255-clojure-unicode-symbols
Dec 2, 2026
Merged

devin-ai-integration[bot] merged 1 commit into
masterfrom
devin/1796226255-clojure-unicode-symbols

Conversation

@tiensonqin

@tiensonqin tiensonqin commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Widen the generated Nextjournal Clojure grammar's symbol and keyword ranges so names such as 全map and 🚀map parse as single tokens past the previous U+10FF cutoff. Preserve Unicode whitespace boundaries and recognize U+FEFF as a separator.
  • Add a shared Native and Melange UTF-16 regression for BMP and supplementary call heads, a non-ASCII keyword, and whitespace boundaries. Keep reader tag and Java constructor rules intact.

Validation

  • The focused reader regression failed with the original grammar and passed with the regenerated tables. Generator --check, dune build @all, dune runtest, dune build @melange-tests, and the standalone Logseq native catalog build and tests passed.
  • Signed SDL3/Metal macOS before-and-after comparison used the same Logseq 65399a01b5, LUI 90a9a44d, and byte-identical bundled workers with OCaml 5.5.0. Both updated call heads receive one full builtin span, matching CodeMirror 5.65.18. U+3000 still separates the call head from inc. All 741 changed pixels belong to the leading-Unicode call heads. Color emoji retain their intrinsic glyph colors.
  • Signed UI validation covered standalone Clojure on macOS. Signed Markdown, Windows, and Linux UI were unavailable in this run.
  • Addresses the leading-Unicode parser gap documented in Logseq #14632. Logseq will consume the change through an update to both CodeMirror package pins after this PR lands.
Signed baseline Signed candidate
Split ink for leading Unicode heads Complete heads use builtin ink

Link to Devin session: https://app.devin.ai/sessions/97b992ac6a93453796bebbf311e43f75
Open in Devin Desktop: https://app.devin.ai/desktop/session/97b992ac6a93453796bebbf311e43f75?variant=devin
Requested by: @tiensonqin


🟢 Devin Review found nothing to fix · View findings

Devin Review

@devin-ai-integration

Copy link
Copy Markdown

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@devin-ai-integration
devin-ai-integration Bot merged commit bce5605 into master Dec 2, 2026
5 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