summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHong Xu <hong@topbug.net>2016-02-28 20:02:20 -0800
committerHong Xu <hong@topbug.net>2016-02-28 20:02:20 -0800
commit4913cfd81bb68d18de31cbe20591535880758172 (patch)
tree46799d643c87250e19be308cf2ae8eb80c200dc2
parente48b387113e036192110c91e4e347cd21828a7cc (diff)
downloadpygments-4913cfd81bb68d18de31cbe20591535880758172.tar.gz
Bash lexer: letter from "g" to "z" should also be treated as part of a variable name.
Fixes #1214
-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 4145939e..6a3b3815 100644
--- a/pygments/lexers/shell.py
+++ b/pygments/lexers/shell.py
@@ -50,7 +50,7 @@ class BashLexer(RegexLexer):
(r'\$\(\(', Keyword, 'math'),
(r'\$\(', Keyword, 'paren'),
(r'\$\{#?', String.Interpol, 'curly'),
- (r'\$[a-fA-F_][a-fA-F0-9_]*', Name.Variable), # user variable
+ (r'\$[a-zA-Z_][a-zA-Z0-9_]*', Name.Variable), # user variable
(r'\$(?:\d+|[#$?!_*@-])', Name.Variable), # builtin
(r'\$', Text),
],