From de02a17e6ada44713e996b542909840b445254d8 Mon Sep 17 00:00:00 2001 From: Erik Demaine Date: Thu, 5 Dec 2024 20:45:55 -0500 Subject: [PATCH] Another laatIndexOf fix --- source/parser/function.civet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/parser/function.civet b/source/parser/function.civet index a682710f..08369e28 100644 --- a/source/parser/function.civet +++ b/source/parser/function.civet @@ -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