diff options
author | Hong Xu <hong@topbug.net> | 2016-02-28 20:02:20 -0800 |
---|---|---|
committer | Hong Xu <hong@topbug.net> | 2016-02-28 20:02:20 -0800 |
commit | 2771f3430c323a1906ecdc11e69bde7c11427f7d (patch) | |
tree | a4805a4ff86b20d190fb353e03ee5e30a8419785 | |
parent | 10fd009ddfef9f4da6c9b01d4e04bbaaf975678f (diff) | |
download | pygments-2771f3430c323a1906ecdc11e69bde7c11427f7d.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.py | 2 |
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), ], |