diff options
Diffstat (limited to 'lib/compatibility/2.nom')
| -rw-r--r-- | lib/compatibility/2.nom | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/compatibility/2.nom b/lib/compatibility/2.nom index da11245..782ccb0 100644 --- a/lib/compatibility/2.nom +++ b/lib/compatibility/2.nom @@ -33,6 +33,5 @@ upgrade $tree to "2" as: $bits = [: for $ in $tree: add (($ upgraded) if ($ is syntax tree) else $)] unless (($bits, last) is "Block" syntax tree): $body = ($bits, last) - $bits.(size of $bits) = - =lua "SyntaxTree{type='Block', source=\$body.source, \$body}" - return (=lua "SyntaxTree{type='Action', source=\$tree.source, unpack(\$bits)}") + $bits.(#$bits) = (=lua "SyntaxTree{type='Block', source=\$body.source, \$body}") + return (=lua "SyntaxTree{type='Action', source=\$tree.source, unpack(\$bits)}")
\ No newline at end of file |
