mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue