diff options
author | Georg Brandl <georg@python.org> | 2013-11-04 07:22:38 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-11-04 07:22:38 +0100 |
commit | 790a48da558443b3aa4c9f04a55a43b1a48b3d4d (patch) | |
tree | b022168e96cb87f9455cef338012a347f2e60bf6 /pygments/lexer.py | |
parent | b3ed638a1f5e5379e208bd0d5c90a7dac3b18afa (diff) | |
parent | 1e5bc0e412818a7dde5920a723663c385de0e1fb (diff) | |
download | pygments-790a48da558443b3aa4c9f04a55a43b1a48b3d4d.tar.gz |
Merged in goodwillcoding/pygments-main (pull request #229)
Make pygments.lexers.guess_lexer_for_filename py3 compatible.
Diffstat (limited to 'pygments/lexer.py')
-rw-r--r-- | pygments/lexer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexer.py b/pygments/lexer.py index 8f88dfda..662c059e 100644 --- a/pygments/lexer.py +++ b/pygments/lexer.py @@ -673,7 +673,7 @@ class ExtendedRegexLexer(RegexLexer): if state == '#pop': ctx.stack.pop() elif state == '#push': - ctx.stack.append(statestack[-1]) + ctx.stack.append(ctx.stack[-1]) else: ctx.stack.append(state) elif isinstance(new_state, int): |