diff options
author | Stephan Jorek <stephan.jorek@gmail.com> | 2013-10-03 13:48:31 +0200 |
---|---|---|
committer | Stephan Jorek <stephan.jorek@gmail.com> | 2013-10-03 13:48:31 +0200 |
commit | 9c2e192b05964165771cfaab1f7f3b2b0387ca52 (patch) | |
tree | f21ed85b8bbbd6ff32a95cf351609b9dca036fa8 | |
parent | 1ea0fa53d253eae501f0a48611dd01493240b34d (diff) | |
download | pygments-9c2e192b05964165771cfaab1f7f3b2b0387ca52.tar.gz |
Fix: undefined `statestack` variable in `pygments.lexer.ExtendedRegexLexer.get_tokens_unprocessed(?)`
-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): |