Relax Pure::Parser's comment regex...

...to allow any character sequence, including "/*", before then end
sequence of a multi-line ANSI C-style comment
.
This commit is contained in:
Stephen Humphries 2022-02-10 14:47:42 -05:00 committed by Hiroshi SHIBATA
parent 8feed977a0
commit 326a21d441
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -272,6 +272,14 @@ EOT
EOT
assert_raise(ParserError) { parse(json) }
json = <<EOT
{
"key1":"value1" /* multi line
// nested eol comment
/* legal nested multi line comment start sequence */
}
EOT
assert_equal({ "key1" => "value1" }, parse(json))
json = <<EOT
{
"key1":"value1" /* multi line
// nested eol comment