summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Hendrick <justinjhendrick@gmail.com>2014-07-08 12:41:23 -0400
committerJustin Hendrick <justinjhendrick@gmail.com>2014-07-08 12:41:23 -0400
commit1f2829086f0640b36149f87b7de5c122f9905c9e (patch)
tree075bd249a0db99407fec62a858c15a58704df5ca
parentce0b8f96d87f0d20401a76733d15d415b973c0ce (diff)
downloadpygments-1f2829086f0640b36149f87b7de5c122f9905c9e.tar.gz
ParaSailLexer: match abstract declarations correctly
-rw-r--r--pygments/lexers/compiled.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py
index 55b12109..d96f884c 100644
--- a/pygments/lexers/compiled.py
+++ b/pygments/lexers/compiled.py
@@ -2581,7 +2581,7 @@ class ParaSailLexer(RegexLexer):
# matching and=, or=, and xor= doesn't work yet
(r'\b(and(=|\sthen)?|or(=|\selse)?|xor=?|rem|mod|'
r'(is|not)\snull)\b',
- Operator.Word),
+ Operator.Word),
# Keywords
(r'\b(abs|abstract|all|block|class|concurrent|const|continue|'
r'each|end|exit|extends|exports|forward|func|global|implements|'
@@ -2590,8 +2590,9 @@ class ParaSailLexer(RegexLexer):
r'type|until|var|with|'
# Control flow
r'if|then|else|elsif|case|for|while|loop)\b',
- Keyword.Reserved),
- (r'[abstract]?(interface|class|op|func|type)', Keyword.Declaration),
+ Keyword.Reserved),
+ (r'(abstract\s+)?(interface|class|op|func|type)',
+ Keyword.Declaration),
(r'"[^"]*"', String),
(r'\\[\'ntrf"0]', String.Escape),
(r'#[a-zA-Z]\w*', Literal),