-
Notifications
You must be signed in to change notification settings - Fork 149
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: suboptimal parser error #7653
Comments
Hard agree 👍 Thanks for making me aware of it |
@JonathanStarup I think this is already better on
|
Cool :) thats better yeah. will it be something like |
Something like that is feasible, and I hope to do that in the next couple of months :) private def tagPat()(implicit s: State): Mark.Closed = {
val mark = open()
name(NAME_TAG, allowQualified = true, context = SyntacticContext.Pat.OtherPat)
if (at(TokenKind.ParenL)) {
tuplePat()
}
close(mark, TreeKind.Pattern.Tag)
}
What I would like to to is add another optional argument to name(NAME_TAG, allowQualified = true, context = SyntacticContext.Pat.OtherPat, Some("Constructors use uppercase names")) Which could land us at:
Although there is a nice challenge left, with how qualified names can work when we also terminate fixpoint constraints with |
I'm not sure if this is too minor in the current stage of development, but I would hope this error to be prettier at some point
The text was updated successfully, but these errors were encountered: