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

scriptcoded / sql-highlight / 6628093308 / 2
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/biomejs/biome-2.3.11
DEFAULT BRANCH: master
Ran 24 Oct 2023 02:12PM UTC
Files 6
Run time 0s
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

24 Oct 2023 02:12PM UTC coverage: 100.0%. Remained the same
6628093308.2

push

github

web-flow
feat: add way to style identifiers

Replace "default" segment with "whitespace" and "identifier" segments,
with fallback to "unknown" segment.

Also, classify backticked identifiers like `foo` as "identifier" rather than "string".

This allows for identifiers to be styled independently from strings and whitespace.

It also simplifies getSegments() from 30 lines down to 5, by removing the special-case
code for the "default" segment.

BREAKING CHANGE: The `default` segment has been split into `identifier` and `whitespace`
segments.  There's also a new `unknown` segment that will only show up for malformed
SQL such as an unclosed string.

However, the highlight() function works largely the same as before, both normal mode and HTML mode,
except for the bug fix to stop classifying identifiers as strings.  In other words, SQL like

select * from EMP where NAME="John Smith"

will get highlighted the same as before, i.e. no syntax highlighting for EMP or NAME.

Fixes #147

15 of 15 branches covered (100.0%)

Branch coverage included in aggregate %.

62 of 62 relevant lines covered (100.0%)

193.68 hits per line

Source Files on job 6628093308.2
  • Tree
  • List 6
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 6628093308
  • 01df1cdf on github
  • Prev Job for on beta (#6626204550.1)
  • Next Job for on beta (#6628238683.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc