Slight wording change in a comment.
This commit is contained in:
@@ -1175,7 +1175,7 @@ class parser(object):
|
||||
self.NextToken()
|
||||
if self.tok[0] not in ('DEFAULT', 'IDENT'):
|
||||
raise EParseSyntax(self)
|
||||
# States are only searched in the global scope
|
||||
# State Switch only searches for states in the global scope
|
||||
name = self.tok[1] if self.tok[0] == 'IDENT' else 'default'
|
||||
if name not in self.symtab[0] and (name not in self.globals or self.globals[name]['Kind'] != 's'):
|
||||
raise EParseUndefined(self)
|
||||
|
||||
Reference in New Issue
Block a user