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 version
  • for var i = 0 to n and for varip ... loop counters now compile
  • Chained equality comparisons such as x == 1 == 1 now compile
  • Converting a v5 script that assigned numbers to a bool variable (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 a label variable 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 a switch or if, operator continuations interrupted by comment lines, statements continued with a leading comma, and multi-line array literals in a switch default branch