Skip to content

Commit

Permalink
Walk through list nodes (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
intrnl committed Mar 6, 2022
1 parent 6680540 commit 491778b
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/cjs/parsel.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function walk(node, callback, o, parent) {
walk(node.left, callback, o, node);
walk(node.right, callback, o, node);
}
else if (node.type === "compound") {
else if (node.type === "compound" || node.type === "list") {
for (let n of node.list) {
walk(n, callback, o, node);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/cjs/parsel.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/nomodule/parsel.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ var parsel = (function (exports) {
walk(node.left, callback, o, node);
walk(node.right, callback, o, node);
}
else if (node.type === "compound") {
else if (node.type === "compound" || node.type === "list") {
for (let n of node.list) {
walk(n, callback, o, node);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/nomodule/parsel.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/parsel.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function walk(node, callback, o, parent) {
walk(node.left, callback, o, node);
walk(node.right, callback, o, node);
}
else if (node.type === "compound") {
else if (node.type === "compound" || node.type === "list") {
for (let n of node.list) {
walk(n, callback, o, node);
}
Expand Down
Loading

0 comments on commit 491778b

Please sign in to comment.