May 29, 2026
5:08 p.m.
On Fri May 29 13:09:41 2026 +0000, Francis De Brabandere wrote:
@jacek what do you think about the current solution? It's still adding checks that could be handled by grammar rules instead. For example, a simple change like:
- | SourceElements StatementNl { source_add_statement(ctx, $2); }
+ | SourceElements Statement StSep { source_add_statement(ctx, $2); }
is enough to allow parsing the problematic script. A precise error reporting could be probably done by changing other rules too. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10897#note_141730