Skip to content

Commit

Permalink
Another laatIndexOf fix
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine committed Dec 6, 2024
1 parent a9c39d2 commit de02a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/parser/function.civet
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ function assignResults(node: StatementTuple[] | ASTNode, collect: (node: ASTNode
when "PipelineExpression"
// At statement level, pipeline generates semicolons between statements
// Return the last one
semi := exp.children.indexOf ";"
semi := exp.children.lastIndexOf ";"
if 0 <= semi < exp.children# - 1
exp.children[semi+1..] = [collect exp.children[semi+1..]]
return
Expand Down

0 comments on commit de02a17

Please sign in to comment.