-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Open
Labels
Domain: Error MessagesThe issue relates to error messagingThe issue relates to error messagingEffort: DifficultGood luck.Good luck.Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancements
Description
From @robpalme: https://twitter.com/robpalmer2/status/1190383568612184064
function base_init() {
{
}
function me() {
}
Motivation
When an ending curly brace (or similar) is missing, we can give some better hints to the user.
In some cases, this might be because a stray }
throws parsing off.
Suggestion
It would be very cool to explain a possible reason that the user is getting a '}' expected
error:
} ~ This '}' occurs at the same indentation level, but corresponds to a different brace.
Metadata
Metadata
Assignees
Labels
Domain: Error MessagesThe issue relates to error messagingThe issue relates to error messagingEffort: DifficultGood luck.Good luck.Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancements