summaryrefslogtreecommitdiff
path: root/pygments/lexers/chapel.py
diff options
context:
space:
mode:
authorLydia Duncan <lydia.duncan16@gmail.com>2016-02-01 09:40:03 -0800
committerLydia Duncan <lydia.duncan16@gmail.com>2016-02-01 09:40:03 -0800
commit0f500f75d258b131707f4601d8010089a570c436 (patch)
treed0096a5a0a4eafcfbd296e08b828720368bd044d /pygments/lexers/chapel.py
parent6e56ac1107e78221b78c9dd9d07d5fed2a249f6e (diff)
downloadpygments-0f500f75d258b131707f4601d8010089a570c436.tar.gz
Add 'except' and 'only' keywords to Chapel lexer and example program.
Also fix example program so that it builds and runs again.
Diffstat (limited to 'pygments/lexers/chapel.py')
-rw-r--r--pygments/lexers/chapel.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/pygments/lexers/chapel.py b/pygments/lexers/chapel.py
index d69c55f5..9f9894cd 100644
--- a/pygments/lexers/chapel.py
+++ b/pygments/lexers/chapel.py
@@ -44,12 +44,13 @@ class ChapelLexer(RegexLexer):
(words((
'align', 'atomic', 'begin', 'break', 'by', 'cobegin', 'coforall',
'continue', 'delete', 'dmapped', 'do', 'domain', 'else', 'enum',
- 'export', 'extern', 'for', 'forall', 'if', 'index', 'inline',
- 'iter', 'label', 'lambda', 'let', 'local', 'new', 'noinit', 'on',
- 'otherwise', 'pragma', 'private', 'public', 'reduce',
- 'require', 'return', 'scan', 'select', 'serial', 'single',
- 'sparse', 'subdomain', 'sync', 'then', 'use', 'when', 'where',
- 'while', 'with', 'yield', 'zip'), suffix=r'\b'),
+ 'except', 'export', 'extern', 'for', 'forall', 'if', 'index',
+ 'inline', 'iter', 'label', 'lambda', 'let', 'local', 'new',
+ 'noinit', 'on', 'only', 'otherwise', 'pragma', 'private',
+ 'public', 'reduce', 'require', 'return', 'scan', 'select',
+ 'serial', 'single', 'sparse', 'subdomain', 'sync', 'then',
+ 'use', 'when', 'where', 'while', 'with', 'yield', 'zip'),
+ suffix=r'\b'),
Keyword),
(r'(proc)((?:\s|\\\s)+)', bygroups(Keyword, Text), 'procname'),
(r'(class|module|record|union)(\s+)', bygroups(Keyword, Text),