summaryrefslogtreecommitdiff
path: root/pygments/lexers/shell.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2017-01-22 20:27:58 +0100
committerGeorg Brandl <georg@python.org>2017-01-22 20:27:58 +0100
commitf9d97178624f11b597803206ba1d918da9c89532 (patch)
tree73ec1e1e0d5a451561453e73b8dcc1947cc52890 /pygments/lexers/shell.py
parent1f75c51afdbe281e0044ca5c5369e14fc5e0e8e1 (diff)
downloadpygments-f9d97178624f11b597803206ba1d918da9c89532.tar.gz
all: run regexlint, add a few more changelog entries
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 7c2c3743..ceb6f14d 100644
--- a/pygments/lexers/shell.py
+++ b/pygments/lexers/shell.py
@@ -51,7 +51,7 @@ class BashLexer(RegexLexer):
(r'\$\(\(', Keyword, 'math'),
(r'\$\(', Keyword, 'paren'),
(r'\$\{#?', String.Interpol, 'curly'),
- (r'\$[a-zA-Z_][a-zA-Z0-9_]*', Name.Variable), # user variable
+ (r'\$[a-zA-Z_]\w*', Name.Variable), # user variable
(r'\$(?:\d+|[#$?!_*@-])', Name.Variable), # builtin
(r'\$', Text),
],