Merge libucl 20140718 (fixes a bug in the parser)
This commit is contained in:
commit
f181a08264
@ -1661,6 +1661,11 @@ ucl_state_machine (struct ucl_parser *parser)
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
/* Skip any spaces */
|
||||
while (p < chunk->end && ucl_test_character (*p,
|
||||
UCL_CHARACTER_WHITESPACE_UNSAFE)) {
|
||||
ucl_chunk_skipc (chunk, p);
|
||||
}
|
||||
p = chunk->pos;
|
||||
if (*p == '[') {
|
||||
parser->state = UCL_STATE_VALUE;
|
||||
|
3
contrib/libucl/tests/basic/11.in
Normal file
3
contrib/libucl/tests/basic/11.in
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
{"key": "value"}
|
2
contrib/libucl/tests/basic/11.res
Normal file
2
contrib/libucl/tests/basic/11.res
Normal file
@ -0,0 +1,2 @@
|
||||
key = "value";
|
||||
|
Loading…
Reference in New Issue
Block a user