From f6bc380b9525831797c698ef4e6700d359891b7f Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Mon, 5 Apr 2021 20:01:03 +0300 Subject: [PATCH] Fixed lastToken for fn_proto_multi nodes --- src/ast.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ast.zig b/src/ast.zig index d84476e..79a26c2 100644 --- a/src/ast.zig +++ b/src/ast.zig @@ -674,7 +674,7 @@ pub fn lastToken(tree: ast.Tree, node: ast.Node.Index) ast.TokenIndex { n = datas[n].rhs; } else { // Use the last argument and skip right paren - n = extra.end; + n = tree.extra_data[extra.end - 1]; end_offset += 1; } },