Skip to content

Commit

Permalink
allow parser to handle cases with nested elements of same type
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Apr 9, 2017
1 parent 6b8c407 commit a135ab2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@
} else if (token !== undefined) {
// Match all children
var current = state.current;
while (token.type !== "tag" || token.type === "tag" && (token.closeStart === false && token.closeEnd === false || token.value !== tagType)) {
while (token.type !== "tag" || token.type === "tag" && (token.closeStart === undefined && token.closeEnd === undefined || token.value !== tagType)) {
var parsedChildState = walk(state);
if (parsedChildState !== null) {
node.children.push(parsedChildState);
Expand Down

0 comments on commit a135ab2

Please sign in to comment.