summaryrefslogtreecommitdiff
path: root/scripts/debug_lexer.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/debug_lexer.py')
-rwxr-xr-xscripts/debug_lexer.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/debug_lexer.py b/scripts/debug_lexer.py
index 6963a5c0..d00b6102 100755
--- a/scripts/debug_lexer.py
+++ b/scripts/debug_lexer.py
@@ -8,7 +8,7 @@
the text where Error tokens are being generated, along
with some context.
- :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
+ :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -52,12 +52,10 @@ class DebuggingRegexLexer(ExtendedRegexLexer):
ctx.pos = m.end()
else:
if not isinstance(self, ExtendedRegexLexer):
- for item in action(self, m):
- yield item
+ yield from action(self, m)
ctx.pos = m.end()
else:
- for item in action(self, m, ctx):
- yield item
+ yield from action(self, m, ctx)
if not new_state:
# altered the state stack?
statetokens = tokendefs[ctx.stack[-1]]