summaryrefslogtreecommitdiff
path: root/pygments/lexers/shell.py
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2016-06-01 00:38:50 -0700
committerTim Hatch <tim@timhatch.com>2016-06-01 00:38:50 -0700
commit3ae28f22bfd54db37c8ea2fc5bc48c4c5aef003c (patch)
tree4bc5ef691ac0f5530b787b88f9400ca7281a65b0 /pygments/lexers/shell.py
parent0e2047c4abd3e6722b344cb15e52cfe2280a665b (diff)
downloadpygments-git-3ae28f22bfd54db37c8ea2fc5bc48c4c5aef003c.tar.gz
Improve number highlighting in bash.
Fixes #1244
Diffstat (limited to 'pygments/lexers/shell.py')
-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 c2f54fc2..b9368ade 100644
--- a/pygments/lexers/shell.py
+++ b/pygments/lexers/shell.py
@@ -83,7 +83,7 @@ class BashLexer(RegexLexer):
(r'&', Punctuation),
(r'\|', Punctuation),
(r'\s+', Text),
- (r'\d+(?= |\Z)', Number),
+ (r'\d+\b', Number),
(r'[^=\s\[\]{}()$"\'`\\<&|;]+', Text),
(r'<', Text),
],