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

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

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 24 Oct 2023 02:12PM UTC
Jobs 3
Files 3
Run time 1s
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

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 %.

7 of 7 new or added lines in 1 file covered. (100.0%)

31 of 31 relevant lines covered (100.0%)

1162.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6628093308.1 24 Oct 2023 02:12PM UTC 6
100.0
GitHub Action Run
2 6628093308.2 24 Oct 2023 02:12PM UTC 6
100.0
GitHub Action Run
3 6628093308.3 24 Oct 2023 02:12PM UTC 6
100.0
GitHub Action Run
Source Files on build 6628093308
  • Tree
  • List 3
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #6628093308
  • 01df1cdf on github
  • Prev Build on beta (#6626204550)
  • Next Build on beta (#6628238683)
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

© 2025 Coveralls, Inc