summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Van Doren <thomas.vandoren@gmail.com>2014-09-09 09:28:30 -0700
committerThomas Van Doren <thomas.vandoren@gmail.com>2014-09-09 09:28:30 -0700
commit07c10db9002d28d1061e51a34ef1c000a4113b45 (patch)
tree0a354e671b000c90bf364150735aba7d00fa97f9
parent9a44bbccb8edffbf033a2fa9b66bb9cc8b7e4e7c (diff)
downloadpygments-07c10db9002d28d1061e51a34ef1c000a4113b45.tar.gz
Add 'with' keyword and octal int.
'with' keyword is added to the language for the upcoming release to support task ref intents. Octal integers are also entering the language.
-rw-r--r--pygments/lexers/compiled.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py
index 53292dfa..4249da92 100644
--- a/pygments/lexers/compiled.py
+++ b/pygments/lexers/compiled.py
@@ -3924,7 +3924,7 @@ class ChapelLexer(RegexLexer):
r'delete|dmapped|do|domain|else|enum|export|extern|for|forall|'
r'if|index|inline|iter|label|lambda|let|local|new|noinit|on|'
r'otherwise|pragma|reduce|return|scan|select|serial|single|sparse|'
- r'subdomain|sync|then|use|when|where|while|yield|zip)\b',
+ r'subdomain|sync|then|use|when|where|while|with|yield|zip)\b',
Keyword),
(r'(proc)((?:\s|\\\s)+)', bygroups(Keyword, Text), 'procname'),
(r'(class|module|record|union)(\s+)', bygroups(Keyword, Text),
@@ -3948,6 +3948,8 @@ class ChapelLexer(RegexLexer):
(r'0[xX][0-9a-fA-F]+', Number.Hex),
# -- decimal
(r'[0-9]+', Number.Integer),
+ # -- octal
+ (r'0[oO][0-7]+', Number.Oct),
# strings
(r'["\'](\\\\|\\"|[^"\'])*["\']', String),