jakt
jakt copied to clipboard
Parser: Ensure `parse_function` doesn't enter infinite loops
Fixes #226 and other instances where the parser was getting stuck because an unexpected token was encountered, such as:
function foo<Ts..>(a: i32)
function foo<Ts, ..>(a: i32)
function foo<Ts>(a: i32, ..)
Hello!
One or more of the commit messages in this PR do not match the Jakt code submission policy, please check the lint_commits
CI job for more details on which commits were flagged and why.
Please do not close this PR and open another, instead modify your commit message(s) with git commit --amend and force push those changes to update this PR.
Closed as this is a change for the now-gone Rust-based compiler. Feel free to port your changes to the new compiler, if they're not already added, and open a new PR. :^)