mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-27 06:31:19 -03: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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user