Permit trailing commas in JSON maps & arrays

Handled in both dbYacc and yajl parsers.
Adds tests to linkInitTest.
This commit is contained in:
Andrew Johnson
2017-06-05 12:49:26 -05:00
parent e1ba1c6bba
commit 4c6b570a46
3 changed files with 28 additions and 18 deletions
+3 -3
View File
@@ -90,10 +90,10 @@ record(event, "ev2") {
}
record(int64in, "i1") {
field(INP, [1234567890123456789,0])
field(INP, [1234567890123456789,])
}
record(int64in, "i2") {
field(INP, {const:1234567890123456789})
field(INP, {const:1234567890123456789,})
}
record(int64in, "i3") {
field(INP, 1234567890123456789)
@@ -101,6 +101,6 @@ record(int64in, "i3") {
record(waveform, "i4") {
field(NELM, 1)
field(FTVL, "INT64")
field(INP, [1234567890123456789,0])
field(INP, [1234567890123456789,])
}