diff options
author | James Adams <james.adams@stfc.ac.uk> | 2014-02-03 13:36:08 +0100 |
---|---|---|
committer | James Adams <james.adams@stfc.ac.uk> | 2014-02-03 13:36:08 +0100 |
commit | 6f1bb16a745f6c9d18ef10001813aceb4a1a8e80 (patch) | |
tree | 27ab4b5cbb16134592265a305122d83d0af313af /pygments | |
parent | 98eeb7cb7d77ec0aceb4ee3492be1c9b0ad737ff (diff) | |
download | pygments-6f1bb16a745f6c9d18ef10001813aceb4a1a8e80.tar.gz |
Correct patterns for paren and curly.
Remove spurious pattern for variable.
Diffstat (limited to 'pygments')
-rw-r--r-- | pygments/lexers/other.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py index 177ee351..aa0913c1 100644 --- a/pygments/lexers/other.py +++ b/pygments/lexers/other.py @@ -3811,8 +3811,8 @@ class PanLexer(RegexLexer): tokens = { 'root': [ include('basic'), - (r'\$\(', Keyword, 'paren'), - (r'\${#?', Keyword, 'curly'), + (r'\(', Keyword, 'paren'), + (r'{', Keyword, 'curly'), include('data'), ], 'basic': [ @@ -3841,7 +3841,6 @@ class PanLexer(RegexLexer): (r'\s+', Text), (r'[^=\s\[\]{}()$"\'`\\]+', Text), (r'\d+(?= |\Z)', Number), - (r'\$#?(\w+|.)', Name.Variable), ], 'curly': [ (r'}', Keyword, '#pop'), |