diff --git a/lslopt/lslparse.py b/lslopt/lslparse.py index 7b54187..be3b384 100644 --- a/lslopt/lslparse.py +++ b/lslopt/lslparse.py @@ -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)