Skip to content

Commit

Permalink
Fixed: Support parsing nested option-values with or without ':' (#951,
Browse files Browse the repository at this point in the history
…fixes #946)
  • Loading branch information
dcodeIO committed Nov 27, 2017
1 parent 685adb0 commit 478f332
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,10 @@ function parse(source, root, options) {
parseOptionValue(parent, name + "." + token);
else {
skip(":");
setOption(parent, name + "." + token, readValue(true));
if (peek() === "{")
parseOptionValue(parent, name + "." + token);
else
setOption(parent, name + "." + token, readValue(true));
}
} while (!skip("}", true));
} else
Expand Down

0 comments on commit 478f332

Please sign in to comment.