From 6f45b8d632cf7979254516de1a9e06b24e08a016 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 30 Apr 2019 12:16:41 +0200 Subject: [PATCH] docs/fish_indent_lexer: Support `>_` as prompt indicator This was widely used in the old docs, and currently it just allowed `>`. See #5696. [ci skip] --- sphinx_doc_src/fish_indent_lexer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx_doc_src/fish_indent_lexer.py b/sphinx_doc_src/fish_indent_lexer.py index f704e5691..1bc978731 100644 --- a/sphinx_doc_src/fish_indent_lexer.py +++ b/sphinx_doc_src/fish_indent_lexer.py @@ -121,7 +121,7 @@ class FishIndentLexer(Lexer): else: # We have a prompt line. # Use a regexp because it will maintain string indexes for us. - regex = re.compile(r"^(>\s*)?(.*\n?)", re.MULTILINE) + regex = re.compile(r"^(>_?\s*)?(.*\n?)", re.MULTILINE) for m in regex.finditer(input_text): if m.group(1): # Prompt line; highlight via fish syntax.