mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 03:13:37 +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:
|
else:
|
||||||
# We have a prompt line.
|
# We have a prompt line.
|
||||||
# Use a regexp because it will maintain string indexes for us.
|
# 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):
|
for m in regex.finditer(input_text):
|
||||||
if m.group(1):
|
if m.group(1):
|
||||||
# Prompt line; highlight via fish syntax.
|
# Prompt line; highlight via fish syntax.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user