Repository navigation
feat(highlights): add 35 languages (120 total) - #1230
Conversation
Add lexers for ada, apache, apex, asciidoc, awk, bicep, blade, cobol, coffee, dotenv, erb, gherkin, gnuplot, haml, handlebars, haxe, http, ini, jinja, liquid, log, nginx, plsql, po, prisma, prolog, pug, qml, razor, rst, tcl, twig, verilog, vhdl, and viml, plus Shiki aliases for existing lexers. Move live-only buffers to page 2 to make room for keyword tables, widen keyword pool offsets to 14 bits, and copy only the saved part of the checkpoint region per live line.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ef22986082
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
- live: store only the nonzero checkpoint range per line state, so later lexer windows no longer carry the zero windows before them - ini: a blank line ends a backslash continuation in whole-buffer mode - plsql: `q'` before a blank, tab, or line break is not a quote - rst/asciidoc: non-ASCII letters block inline markup - apex: a lowercase type word before an operator is a variable - build: check the language name table against its region
Most test files compile the whole wasm module in a setup hook. On a loaded CI runner those hooks passed Bun's 5 s default.
Add 35 lexers, picked by popularity (GitHub file counts, Stack Overflow questions, VS Code extension installs). Highlights now supports 120 languages.
New: ada, apache, apex, asciidoc, awk, bicep, blade, cobol, coffee, dotenv, erb, gherkin, gnuplot, haml, handlebars, haxe, http, ini, jinja, liquid, log, nginx, plsql, po, prisma, prolog, pug, qml, razor, rst, tcl, twig, verilog, vhdl, viml.
Key changes
sql.wat, apex usesjava.wat, jinja/twig/liquid/handlebars sharejinja.wat, blade/razor sharetemplate.wat.Size
highlights.wasmLive editing (
bench-live)ref #1228