summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/debug_lexer.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/debug_lexer.py b/scripts/debug_lexer.py
index b736ee4a..d00b6102 100755
--- a/scripts/debug_lexer.py
+++ b/scripts/debug_lexer.py
@@ -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]]