Skip to content

Commit 478f332

Browse files
committed
Fixed: Support parsing nested option-values with or without ':' (#951, fixes #946)
1 parent 685adb0 commit 478f332

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/parse.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,10 @@ function parse(source, root, options) {
555555
parseOptionValue(parent, name + "." + token);
556556
else {
557557
skip(":");
558-
setOption(parent, name + "." + token, readValue(true));
558+
if (peek() === "{")
559+
parseOptionValue(parent, name + "." + token);
560+
else
561+
setOption(parent, name + "." + token, readValue(true));
559562
}
560563
} while (!skip("}", true));
561564
} else

0 commit comments

Comments
 (0)