Repository navigation
highlight-gooo v0.1.1: stop at the first lexical error
Pre-releaseExperimental source patch release of the standalone Gooo highlighter. It now stops at the first raw lexer Error before the coalescer can read ahead, reports that token and writes no partial output. Valid HTML/JSON output remains identical on the twelve checked input/format pairs.
Download floor.gooo below, then try it without cloning or installing a Gooo compiler:
go run github.com/kimjooyoon/gooo-language-bridge/examples/[email protected] floor.gooo > floor.htmlFor a persistent command:
go install github.com/kimjooyoon/gooo-language-bridge/examples/[email protected]
highlight-gooo -format json floor.goooRequires Go 1.25+ and network access for module installation. Go 1.25.0 tests pass on Linux, and installation plus the pinned go run command were independently executed outside the checkout on macOS arm64 with Go 1.25.0. No Gooo compiler, model, API key, service or Chroma fork is needed. Usage and scope.
CI 39680734287 passes the complete bounded job. For one 128KiB run of ?, three single iterations on the same Go 1.27.3 Linux toolchain give median total allocation 717,512,440 → 695,088 B/op (about 99.9% lower). This is a finite error-path observation, not peak memory or a general performance guarantee; execution timing is not gated. The first-error read-ahead regression and the existing race tests also pass.
The assets include the sample input, standalone HTML, source-preserving JSON, installed module origin/build information, and a checksum manifest. verification.zip preserves the original CI observations, logs and matching source for all 88 recorded hashes, so this component's evidence remains available after the CI artifact expires. It contains no release binaries. Hashes bind content; GitHub run/commit metadata supplies execution context. No reproducible-binary claim is made.
The lexer bytes remain bound to submitted Chroma PR #1410, with published Chroma v2.27.0. Upstream acceptance remains pending. Highlighting does not compile or semantically validate a program; input remains limited to 4MiB. Source and example assets are MIT licensed.
Implementation and validation were assisted by OpenAI Codex.