summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2020-12-28 09:56:14 +0100
committerGeorg Brandl <georg@python.org>2020-12-28 09:56:14 +0100
commit00a31bcae2f61ce74ccfabd05be2731bfc7a5a28 (patch)
tree5a49352457b543a2936c1e3dcc6c2991bc016cd4 /pygments
parenta3d4100a31dccefbe7701a7ac04c4e354c03a188 (diff)
parent456ac59d8481c09c29ea9f771550a933ba70edb8 (diff)
downloadpygments-git-00a31bcae2f61ce74ccfabd05be2731bfc7a5a28.tar.gz
Merge github.com:mathiasertl/pygments
fixes #1645
Diffstat (limited to 'pygments')
-rw-r--r--pygments/lexers/shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/shell.py b/pygments/lexers/shell.py
index 713d4321..daef1f39 100644
--- a/pygments/lexers/shell.py
+++ b/pygments/lexers/shell.py
@@ -232,7 +232,7 @@ class BashSessionLexer(ShellSessionBaseLexer):
_innerLexerCls = BashLexer
_ps1rgx = re.compile(
r'^((?:(?:\[.*?\])|(?:\(\S+\))?(?:| |sh\S*?|\w+\S+[@:]\S+(?:\s+\S+)' \
- r'?|\[\S+[@:][^\n]+\].+))\s*[$#%])(.*\n?)')
+ r'?|\[\S+[@:][^\n]+\].+))\s*[$#%]\s*)(.*\n?)')
_ps2 = '>'