Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parser: improve expected token detection in error messages for unterminated fn calls #21107

Closed
wants to merge 1 commit into from

Conversation

ttytm
Copy link
Member

@ttytm ttytm commented Mar 26, 2024

Fixes #21100

So that the expected token is shown as ) instead of ,.

import os

println(os.file_last_mod_unix('x.v')
import os

fn foo(i i64) {
	println(i)
}

foo(os.file_last_mod_unix('x.v')

@ttytm ttytm changed the title parser: improve expected token in error messages for unterminated fn calls parser: improve expected token detection in error messages for unterminated fn calls Mar 26, 2024
@ttytm ttytm marked this pull request as draft March 26, 2024 20:40
@ttytm

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"bad" error message for unterminated println
1 participant