xo-reader2: bugfix: detecting toplevel for upsert global var
This commit is contained in:
parent
f761a38723
commit
595dc47dee
4 changed files with 45 additions and 5 deletions
|
|
@ -41,7 +41,7 @@ namespace xo {
|
|||
bool
|
||||
SchematikaParser::has_incomplete_expr() const
|
||||
{
|
||||
return !(this->is_at_toplevel());
|
||||
return psm_.has_incomplete_expr();
|
||||
}
|
||||
|
||||
obj<ASyntaxStateMachine>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue