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:
parent
8feed977a0
commit
326a21d441
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user