Skip to content

Commit

Permalink
Merge pull request antlr#361 from renatahodovan/lexeradaptor-py-typo
Browse files Browse the repository at this point in the history
Fix typo in the Python version of LexerAdaptor.
  • Loading branch information
parrt committed May 10, 2016
2 parents d5be78b + 42b37bc commit 963ac70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions antlr4/LexerAdaptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ def handleBeginArgument(self):

def handleEndArgument(self):
self.popMode()
if self._modeStack.size() > 0:
if len(self._modeStack) > 0:
self.setType(self.ARGUMENT_CONTENT)

def handleEndAction(self):
self.popMode()
if self._modeStack.size() > 0:
if len(self._modeStack) > 0:
self.setType(self.ACTION_CONTENT)

def emit(self):
Expand Down

0 comments on commit 963ac70

Please sign in to comment.