diff options
author | Tim Hatch <tim@timhatch.com> | 2014-10-15 22:13:59 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-10-15 22:13:59 -0700 |
commit | 86c2eee37cf292677032e02f553710d4c1eb1f04 (patch) | |
tree | 12de020d6fef10c028344a0fc320a6ab750f48d1 /pygments/lexers/shell.py | |
parent | 78e09bf1384aa4439f56811b08a2b79ddd440b77 (diff) | |
download | pygments-86c2eee37cf292677032e02f553710d4c1eb1f04.tar.gz |
Curly brace escaping, round 1.
These locations were all found by regexlint and done semi-manually, leaving
braces within [] alone (they aren't special in the 'regex' module).
Diffstat (limited to 'pygments/lexers/shell.py')
-rw-r--r-- | pygments/lexers/shell.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/shell.py b/pygments/lexers/shell.py index 3973afa5..575e2525 100644 --- a/pygments/lexers/shell.py +++ b/pygments/lexers/shell.py @@ -46,7 +46,7 @@ class BashLexer(RegexLexer): 'interp': [ (r'\$\(\(', Keyword, 'math'), (r'\$\(', Keyword, 'paren'), - (r'\${#?', String.Interpol, 'curly'), + (r'\$\{#?', String.Interpol, 'curly'), (r'\$#?(\w+|.)', Name.Variable), ], 'basic': [ @@ -288,7 +288,7 @@ class TcshLexer(RegexLexer): 'root': [ include('basic'), (r'\$\(', Keyword, 'paren'), - (r'\${#?', Keyword, 'curly'), + (r'\$\{#?', Keyword, 'curly'), (r'`', String.Backtick, 'backticks'), include('data'), ], |