PyneComp v6.0.70 — More Pine v5 scripts now convert to v6 cleanly, and a handful of valid…
Fixes
//@version = 6(with spaces around=) is now recognized; before, such a script was rejected as an unsupported versionfor var i = 0 to nandfor varip ...loop counters now compile- Chained equality comparisons such as
x == 1 == 1now compile - Converting a v5 script that assigned numbers to a
boolvariable (var bool up = 0,up := 1) now produces valid v6 code - Reassigning the result of a method called on a string literal (e.g.
"Exit".draw_label(...)) to alabelvariable no longer fails - Multi-line calls that pass the same named argument twice now convert; the last value wins, as in v5
- Several conversions that used to produce v6 scripts with broken indentation now come out valid: lines starting with a parenthesized expression, one-line
=>functions that open aswitchorif, operator continuations interrupted by comment lines, statements continued with a leading comma, and multi-line array literals in aswitchdefault branch