leaf-lang/leaf

Issue identifying an invalid token when found after a valid token

Closed this issue · 0 comments

This issue occurs when an invalid token is directly after a valid token e.g.

fn test(x: int) -> int {
    return x *€ 3
}

Where "€" is an invalid token.

The issue does not occur when the invalid token is before a valid token e.g.

fn test(x: int) -> int {
    return x €* 3
}