xo-reader2: bugfix: detecting toplevel for upsert global var

This commit is contained in:
Roland Conybeare 2026-02-16 19:07:37 -05:00
commit 595dc47dee
4 changed files with 45 additions and 5 deletions

View file

@ -41,7 +41,7 @@ namespace xo {
bool
SchematikaParser::has_incomplete_expr() const
{
return !(this->is_at_toplevel());
return psm_.has_incomplete_expr();
}
obj<ASyntaxStateMachine>