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

jhheider / edikt / 30144730858 / 1
96%
main: 96%

Build:
DEFAULT BRANCH: main
Ran 25 Jul 2026 04:51AM UTC
Files 47
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

25 Jul 2026 04:51AM UTC coverage: 95.889% (-0.02%) from 95.913%
30144730858.1

push

github

web-flow
feat(parser): hyphenated bare keys as object keys (#64)

`{default-features: false}` now parses. Follow-up to #62, same root
cause in the other position it shows up.

The argument is even simpler here than for assignment targets. An object
key is not an expression at all: the parser accepts only `Ident` or
`Str`, the pair is `(String, Expr)`, and the key is never evaluated. So
a hyphen in a key cannot be subtraction, and there is nothing to
disambiguate. Purely additive, since every expression this accepts
previously failed.

Both spellings work (`key: value` and the TOML-flavored `key = value`),
quoted keys are untouched, and values are still ordinary expressions, so
`{n: .total - length}` keeps subtracting.

Queries are still left alone, deliberately: `.total-length` is a real
subtraction of the `length` builtin, so a hyphen there cannot be guessed
at. Issue #63 tracks the uneven diagnostics for that case.

Found by dogfooding again, on the line that motivates the whole feature:

  edikt -i '.dependencies.pulldown-cmark = {version: "0.13",
            default-features: false, features: ["html"]}' Cargo.toml

which needed quoting in two separate places before #62 and this.


Claude-Session: https://claude.ai/code/session_016wrSiZfmH1jnLESCR41Xzw

Co-authored-by: Claude <noreply@anthropic.com>

10729 of 11189 relevant lines covered (95.89%)

93.23 hits per line

Source Files on job 30144730858.1
  • Tree
  • List 47
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 30144730858
  • 6cae860e on github
  • Prev Job for on main (#30142874849.1)
  • Next Job for on main (#30145177648.1)
  • 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