claude and Claude Sonnet 4.6
045d458875
Build and Deploy Verso / deploy (push) Has been cancelled
feat(editor): native Lezer grammar for Typst syntax highlighting
...
Replace the StreamLanguage tokenizer with a full LR grammar compiled by
@lezer/generator, giving Typst the same parse-tree infrastructure that
LaTeX and BibTeX already use.
Grammar features:
- Headings (=, ==, …) via SOL-detecting external tokenizer
- Code expressions (#keyword, #func(args), #ident.method, #{…}, #[…])
- Named argument highlighting (key: value in function calls)
- Inline and display math ($…$)
- Strong (*…*) and emphasis (_…_) with bold/italic formatting
- Raw blocks (```lang…```) and inline raw (`…`)
- Nested block comments (/* /* */ */) via depth-tracking external tokenizer
- Labels (<name>) and references (@name)
- Backslash escapes
Infrastructure changes:
- lezer-typst/typst.grammar — new Lezer grammar
- lezer-typst/tokens.mjs — external tokenizers for context-sensitive lexing
- scripts/lezer-latex/generate.mjs — Typst added to grammars array so the
existing lezer-latex:generate script (and Dockerfile step) compile it
- .gitignore — generated typst.mjs / typst.terms.mjs excluded from git
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-07 19:49:17 +00:00
..
2025-12-12 09:06:19 +00:00
2025-11-28 09:05:56 +00:00
2026-02-04 09:08:22 +00:00
2025-11-18 09:04:56 +00:00
2026-05-28 08:07:04 +00:00
2026-05-14 08:06:26 +00:00
2026-02-04 09:08:22 +00:00
2026-06-07 19:49:17 +00:00
2025-09-05 08:05:25 +00:00
2026-06-04 08:05:51 +00:00
2026-04-28 08:52:37 +00:00
2026-02-04 09:08:22 +00:00
2026-05-28 08:05:22 +00:00
2025-07-28 08:05:20 +00:00
2026-02-18 09:05:38 +00:00
2025-11-28 09:05:56 +00:00
2025-12-08 09:06:01 +00:00
2025-11-28 09:05:56 +00:00
2025-11-18 09:04:56 +00:00
2025-11-28 09:05:56 +00:00
2026-03-27 09:05:30 +00:00
2025-11-28 09:05:56 +00:00
2026-05-20 08:07:29 +00:00
2026-03-27 09:05:30 +00:00
2025-11-28 09:05:56 +00:00
2025-11-28 09:05:56 +00:00
2024-10-31 09:05:08 +00:00
2026-04-17 08:05:47 +00:00
2024-11-05 09:04:33 +00:00
2026-03-27 09:05:30 +00:00
2025-11-28 09:05:56 +00:00
2025-10-21 08:05:47 +00:00
2024-10-21 08:04:42 +00:00
2025-11-28 09:05:56 +00:00
2025-07-31 08:05:37 +00:00
2025-11-28 09:05:56 +00:00
2025-11-28 09:05:56 +00:00
2025-10-21 08:05:47 +00:00
2025-10-23 08:06:10 +00:00
2025-11-06 09:05:57 +00:00
2025-11-28 09:05:56 +00:00
2025-11-28 09:05:56 +00:00
2026-03-27 09:05:30 +00:00
2025-11-28 09:05:56 +00:00
2025-10-23 08:06:10 +00:00
2025-11-28 09:05:56 +00:00
2025-11-28 09:05:56 +00:00
2024-11-21 09:03:39 +00:00
2025-11-18 09:04:56 +00:00
2026-02-04 09:05:59 +00:00
2026-03-27 09:05:30 +00:00
2025-11-28 09:05:56 +00:00
2025-11-28 09:05:56 +00:00
2025-11-28 09:05:56 +00:00
2025-11-28 09:05:56 +00:00
2025-11-06 09:05:57 +00:00
2025-11-28 09:05:56 +00:00
2025-11-18 09:04:56 +00:00
2026-04-29 08:05:08 +00:00
2025-09-16 08:04:59 +00:00
2026-05-13 08:06:53 +00:00
2025-11-18 09:04:56 +00:00
2025-10-21 08:06:01 +00:00
2026-05-28 08:06:43 +00:00
2025-11-18 09:04:56 +00:00
2025-11-18 09:04:56 +00:00
2025-11-18 09:04:56 +00:00
2026-04-30 08:05:23 +00:00
2025-11-28 09:05:56 +00:00
2025-11-28 09:05:56 +00:00
2026-03-27 09:05:30 +00:00
2025-11-28 09:05:56 +00:00
2025-11-28 09:05:56 +00:00
2025-11-28 09:05:56 +00:00
2026-03-27 09:05:30 +00:00
2025-11-28 09:05:56 +00:00
2025-12-08 09:06:01 +00:00
2026-03-30 08:05:41 +00:00
2024-10-21 08:04:42 +00:00
2025-11-28 09:05:56 +00:00
2025-11-18 09:04:56 +00:00
2025-08-19 08:05:22 +00:00
2025-11-28 09:05:56 +00:00
2025-10-16 08:07:37 +00:00
2025-11-28 09:05:56 +00:00
2024-10-16 08:04:52 +00:00
2026-05-29 08:05:42 +00:00
2025-11-06 09:05:57 +00:00
2025-11-28 09:05:56 +00:00
2025-11-28 09:05:56 +00:00
2025-10-21 08:05:47 +00:00
2025-11-28 09:05:56 +00:00
2025-11-28 09:05:56 +00:00
2025-11-28 09:05:56 +00:00
2025-11-18 09:04:56 +00:00
2026-04-03 08:05:43 +00:00
2025-11-28 09:05:56 +00:00
2025-11-28 09:05:56 +00:00
2025-11-06 09:05:57 +00:00
2025-11-06 09:05:57 +00:00
2025-11-18 09:04:56 +00:00
2026-04-30 08:06:26 +00:00
2026-03-23 09:06:04 +00:00
2025-07-31 08:05:37 +00:00
2025-05-23 08:05:23 +00:00
2025-11-28 09:05:56 +00:00
2025-11-28 09:05:56 +00:00
2024-01-04 09:03:43 +00:00
2025-10-23 08:06:10 +00:00
2025-11-06 09:05:57 +00:00
2026-04-24 08:06:35 +00:00
2026-01-23 09:05:56 +00:00
2025-11-28 09:05:56 +00:00
2025-11-28 09:05:56 +00:00
2026-04-21 08:05:26 +00:00