summaryrefslogtreecommitdiff
path: root/pygments/lexers/shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/shell.py')
-rw-r--r--pygments/lexers/shell.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pygments/lexers/shell.py b/pygments/lexers/shell.py
index bc55a52a..3b5218b8 100644
--- a/pygments/lexers/shell.py
+++ b/pygments/lexers/shell.py
@@ -172,7 +172,7 @@ class ShellSessionBaseLexer(Lexer):
curcode += line
backslash_continuation = curcode.endswith('\\\n')
continue
-
+
venv_match = self._venv.match(line)
if venv_match:
venv = venv_match.group(1)
@@ -773,7 +773,7 @@ class PowerShellSessionLexer(ShellSessionBaseLexer):
mimetypes = []
_innerLexerCls = PowerShellLexer
- _ps1rgx = re.compile(r'^((?:\[[^]]+\]: )?PS [^>]+> ?)(.*\n?)')
+ _ps1rgx = re.compile(r'^((?:\[[^]]+\]: )?PS[^>]*> ?)(.*\n?)')
_ps2 = '>> '
@@ -907,4 +907,3 @@ class ExeclineLexer(RegexLexer):
def analyse_text(text):
if shebang_matches(text, r'execlineb'):
return 1
-