Restyle fishscript and python

This commit is contained in:
Fabian Boehm
2023-06-01 18:20:19 +02:00
parent 81d91f1038
commit 946ecf235c
35 changed files with 129 additions and 132 deletions

View File

@@ -28,7 +28,7 @@ class FishSynopsisDirective(CodeBlock):
return CodeBlock.run(self)
lexer = FishSynopsisLexer()
result = nodes.line_block()
for (start, tok, text) in lexer.get_tokens_unprocessed("\n".join(self.content)):
for start, tok, text in lexer.get_tokens_unprocessed("\n".join(self.content)):
if ( # Literal text.
(tok in (Name.Function, Name.Constant) and not text.isupper())
or text.startswith("-") # Literal option, even if it's uppercase.