onyx-lang / onyx

✨ The compiler and developer toolchain for Onyx
https://onyxlang.io
BSD 2-Clause "Simplified" License
576 stars 22 forks source link

Error when a comment is added above a piped statement #157

Closed worriedvulkan closed 2 months ago

worriedvulkan commented 2 months ago

Get an error when a comment is added between any statement while using the Pipe(|>) operator.

use core {*}

main :: () {
    iter.counter()
    // Comment
    |> iter.take(4)
}

Trying to run this code in the playground produces an error onyx-comments-between-piped-statements

brendanfh commented 2 months ago

Thanks for reporting this! This is definitely an oversight and should be fixed.