summaryrefslogtreecommitdiff
path: root/pygments/lexers/lisp.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2020-09-06 14:35:14 +0200
committerGitHub <noreply@github.com>2020-09-06 14:35:14 +0200
commit40baa94a6bf0c62be8c8b03a942116869ce80128 (patch)
tree50eca3f33e60a4bbadd29bf566b294052e509259 /pygments/lexers/lisp.py
parented93a2758bdfbeaafc43ac59a611bf2cff92b55c (diff)
downloadpygments-git-40baa94a6bf0c62be8c8b03a942116869ce80128.tar.gz
all: use yield from (#1537)
Diffstat (limited to 'pygments/lexers/lisp.py')
-rw-r--r--pygments/lexers/lisp.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pygments/lexers/lisp.py b/pygments/lexers/lisp.py
index 074ae53a..cd36aedd 100644
--- a/pygments/lexers/lisp.py
+++ b/pygments/lexers/lisp.py
@@ -2277,9 +2277,7 @@ class ShenLexer(RegexLexer):
if self._relevant(token):
if opening_paren and token == Keyword and value in self.DECLARATIONS:
declaration = value
- for index, token, value in \
- self._process_declaration(declaration, tokens):
- yield index, token, value
+ yield from self._process_declaration(declaration, tokens)
opening_paren = value == '(' and token == Punctuation
def _process_symbols(self, tokens):