summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Adams <james.adams@stfc.ac.uk>2014-02-03 13:36:08 +0100
committerJames Adams <james.adams@stfc.ac.uk>2014-02-03 13:36:08 +0100
commit6f1bb16a745f6c9d18ef10001813aceb4a1a8e80 (patch)
tree27ab4b5cbb16134592265a305122d83d0af313af
parent98eeb7cb7d77ec0aceb4ee3492be1c9b0ad737ff (diff)
downloadpygments-6f1bb16a745f6c9d18ef10001813aceb4a1a8e80.tar.gz
Correct patterns for paren and curly.
Remove spurious pattern for variable.
-rw-r--r--pygments/lexers/other.py5
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'),