diff options
author | Georg Brandl <georg@python.org> | 2020-09-06 14:35:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-06 14:35:14 +0200 |
commit | 40baa94a6bf0c62be8c8b03a942116869ce80128 (patch) | |
tree | 50eca3f33e60a4bbadd29bf566b294052e509259 /pygments/lexers/lisp.py | |
parent | ed93a2758bdfbeaafc43ac59a611bf2cff92b55c (diff) | |
download | pygments-git-40baa94a6bf0c62be8c8b03a942116869ce80128.tar.gz |
all: use yield from (#1537)
Diffstat (limited to 'pygments/lexers/lisp.py')
-rw-r--r-- | pygments/lexers/lisp.py | 4 |
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): |