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

open-source-parsers / jsoncpp / 27673820998 / 1
90%
master: 90%

Build:
Build:
LAST BUILD BRANCH: refs/pull/1698/merge
DEFAULT BRANCH: master
Ran 17 Jun 2026 07:46AM UTC
Files 8
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

17 Jun 2026 07:45AM UTC coverage: 89.894% (-0.07%) from 89.959%
27673820998.1

Pull #1696

github

baylesj
fix: allow a comment between a trailing comma and ']' (#1500)

Trailing commas and comments are both allowed by default, but they did
not compose inside arrays: readArray detected a trailing-comma ']' with a
raw `*current_ == ']'` peek that skipped only whitespace, not comments.
So `[1, 2, /* c */]` left current_ at the comment, the peek failed, and
the parser tried to read another value -- which hit ']' and reported
"value, object or array expected". readObject already handled this via
readTokenSkippingComments.

Add skipCommentTokens() (skip whitespace and comments, leaving current_
at the next significant character) and use it in readArray before the
']' check. Consumed comments stay in commentsBefore_, so a comment before
a real element is still attached to it; if the array ends, they are
simply not attached -- matching object behavior.

Adds CharReaderTest/parseTrailingCommaWithComment covering line/block
comments after a trailing comma, an empty array containing only a
comment, the object form, and that a comment before a real element is
still attached.
Pull Request #1696: fix: allow a comment between a trailing comma and ']' (#1500)

2209 of 2626 branches covered (84.12%)

Branch coverage included in aggregate %.

2612 of 2737 relevant lines covered (95.43%)

23455.69 hits per line

Source Files on job 27673820998.1
  • Tree
  • List 8
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 27673820998
  • 78b1e69a on github
  • Prev Job for on fix/1500-trailing-comma-comment (#27653893209.1)
  • Next Job for on fix/1500-trailing-comma-comment (#27673874228.1)
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