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]
This commit is contained in:
Fabian Homborg 2019-04-30 12:16:41 +02:00
parent 3b532fc793
commit 6f45b8d632

View File

@ -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.