soasme / PeppaPEG

PEG Parser in ANSI C
https://soasme.com/PeppaPEG
MIT License
55 stars 7 forks source link

Report some invalid TOML example cases #110

Open soasme opened 3 years ago

soasme commented 3 years ago

Describe the bug The provided tests/toml-v1.0.peg can't capture some cases.

  1. \uxxxx / \UXXXXXXXX out of range. "Any Unicode character may be escaped with the \uXXXX or \UXXXXXXXX forms. The escape codes must be valid Unicode scalar values."
  2. Redefining table/array_table or providing duplicated keys should be invalid.