• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / revdiff / 45229663998
92%

Build:
DEFAULT BRANCH: master
Ran 23 Nov 2026 05:39PM UTC
Jobs 1
Files 82
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Nov 2026 05:37PM UTC coverage: 92.083% (+0.03%) from 92.053%
45229663998

push

github

web-flow
fix(highlight): stop tokenizing when a lexer stops advancing (#458)

* fix(highlight): stop tokenizing when a lexer stops advancing

chroma v2.27.0 lexers with a rule that matches the empty string (JSONata's
last rule, Jungle on / or *) emit empty tokens without moving forward, and
chroma.Coalesce drops empty tokens inside its own loop, so HighlightLines
never returned and revdiff froze at 100% CPU. A guard below Coalesce ends
tokenizing after 1000 consecutive empty tokens and the file is shown without
highlighting. Files that tokenize normally produce the same output.

Fixed #457

* fix(highlight): quote the filename in the stall warning, cover the guard reset

The stall warning writes to the terminal the TUI draws on, so the filename
is printed with %q to escape control bytes from a crafted path. Adds a long
healthy Jungle test, which emits empty tokens at every line start and fails
if the empty-token counter stops resetting, and a stall-then-healthy case on
one Highlighter. Documents the stall case on HighlightLines.

* test(highlight): bound every stall call, trim guard comments

The stall-then-healthy test called the stalling fixture directly, so a
regression in the guard hung the package until the suite timeout. All stall
calls now go through one bounded helper. The guard comments keep why it sits
below Coalesce and why the stalled flag is shared by both diff sides.

28 of 30 new or added lines in 1 file covered. (93.33%)

12457 of 13528 relevant lines covered (92.08%)

3464.9 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
90.42
3.19% app/highlight/highlight.go
Jobs
ID Job ID Ran Files Coverage
1 45229663998.1 23 Nov 2026 05:39PM UTC 82
92.08
GitHub Action Run
Source Files on build 45229663998
  • Tree
  • List 82
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1625ff8e on github
  • Prev Build on master (#44955346455)
  • Next Build on master (#45565262896)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc