anweiss / cddl

Concise data definition language (RFC 8610) implementation and JSON and CBOR validator in Rust
https://cddl.anweiss.tech
MIT License
90 stars 12 forks source link

The conformance tool webpage needs to handle inline comments #205

Closed nslowell closed 1 year ago

nslowell commented 1 year ago

As the RFC says:

Comments are started by a ";" (semicolon) character and finish at the end of a line (LF or CRLF)

but the conformance tool at https://cddl.anweiss.tech/ throws errors when they exist.

Version = [
    major: u32, ; comment
    minor: u32,
    patch: u32,
]

Results in:

invalid group entry syntax

missing definition for rule Version

anweiss commented 1 year ago

@nslowell this has been fixed in #206. The website has also been updated.

nslowell commented 1 year ago

Hurray!