The user context parser should ignore keywords if they are not standing alone.
This commit is contained in:
1 parent
1bb0eccc86
commit
afca0ef047
2 files changed
+6
-3
No files matched your search
@@ -280,9 +280,7 @@ class Script(object):
|
||||
stmt = r.module.statements[-1]
|
||||
except IndexError:
|
||||
raise NotFoundError()
|
||||
if isinstance(stmt, pr.KeywordStatement):
|
||||
stmt = stmt.stmt
|
||||
if not isinstance(stmt, pr.ExprStmt):
|
||||
if not isinstance(stmt, (pr.ExprStmt, pr.KeywordStatement)):
|
||||
raise NotFoundError()
|
||||
|
||||
user_stmt = self._parser.user_stmt()
|
||||
|
||||
Reference in new issue
Block a user