Problem
An expression such as if x == y { true } else { false } can be followed by syntax that is interpreted as indexing the if expression, producing a generic parser error. The parser notes this ambiguity but does not emit a targeted diagnostic.
Desired outcome
Recognize the common missing-semicolon case and suggest adding ; where appropriate.
Location
ndc_parser/src/parser.rs, index-expression parsing.
Problem
An expression such as
if x == y { true } else { false }can be followed by syntax that is interpreted as indexing theifexpression, producing a generic parser error. The parser notes this ambiguity but does not emit a targeted diagnostic.Desired outcome
Recognize the common missing-semicolon case and suggest adding
;where appropriate.Location
ndc_parser/src/parser.rs, index-expression parsing.