You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the parser finds a block with a wrong number of arguments, the error is collected but the context does not change. This means we continue to ingest tokens and analyze statements under a wrong context.
Also, if the parent context is NGX_MAIN_CONF, the next closing bracket token will be interpreted as the end of file, and parsing will stop.
One error for the http directive (wrong number of parameters).
Errors for all the [http directives] (wrong context).
Premature end of parsing before [more directives] are consumed.
Expected behavior
A block directive with a wrong number of arguments (and probably other types of errors as well) should trigger a change of context in the analyze function.