jakt icon indicating copy to clipboard operation
jakt copied to clipboard

Parser: Ensure `parse_function` doesn't enter infinite loops

Open gdelazzari opened this issue 2 years ago • 1 comments

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, ..)

gdelazzari avatar May 23 '22 21:05 gdelazzari

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.

BuggieBot avatar May 23 '22 21:05 BuggieBot

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. :^)

AtkinsSJ avatar Aug 26 '22 22:08 AtkinsSJ