Skip to content

Support X..=Y incluse range syntax

Michael Aaron Murphy requested to merge inclusive-ranges into master

Changes

  • Added Rust's inclusive range syntax (x..=y)
  • ForExpression -> ForValueExpression
  • ForValueExpression uses ion-ranges for parsing ranges now, instead of reinventing it

Examples

for x in 0..=10
    echo $x
end
for x in {0..=10} {0..=10}
    echo $x
end
for x in 0..2..10
    echo $x
end
Edited by Michael Aaron Murphy

Merge request reports