Feedback
Parser misreads nested single-line If before End If
- Status
- Fixed
- Fixed in
- v26.6.3
- Last updated
- 2026-06-11
Public summary
A single-line If ... Then ... nested inside a multi-line If could be parsed as if it owned the following End If. When this happened inside a Try block, the parser then reported misleading errors such as 'Catch' without matching 'Try' and 'End' without matching block opener. Single-line If statements in nested blocks should not consume an enclosing block's End If.