mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 19:03:38 +08:00
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:
parent
3b532fc793
commit
6f45b8d632
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user