diff options
author | Thomas Van Doren <thomas.vandoren@gmail.com> | 2014-07-03 15:00:21 -0700 |
---|---|---|
committer | Thomas Van Doren <thomas.vandoren@gmail.com> | 2014-07-03 15:00:21 -0700 |
commit | a0f35d17627456cdc8e608cc0dc2fa6a32dec6d0 (patch) | |
tree | 37fbd41e68d879b9169617542200dd8dd7f9b7d9 /pygments/lexers/compiled.py | |
parent | 2f1c724903db081f1d6941d366ca95070049e94b (diff) | |
download | pygments-a0f35d17627456cdc8e608cc0dc2fa6a32dec6d0.tar.gz |
Update ChapelLexer prior to Pygments 2.0 release.
* Adds `align`, `noinit`, and `pragma` keywords.
* Updates decimal integer definition to allow any number of leading zeros, as
per spec.
* Adds `<~>` operator, which is used for convenience when reading or writing
input and output.
Diffstat (limited to 'pygments/lexers/compiled.py')
-rw-r--r-- | pygments/lexers/compiled.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index 25c7a4d8..041d56e2 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -3920,10 +3920,10 @@ class ChapelLexer(RegexLexer): (r'(false|nil|true)\b', Keyword.Constant), (r'(bool|complex|imag|int|opaque|range|real|string|uint)\b', Keyword.Type), - (r'(atomic|begin|break|by|cobegin|coforall|continue|iter|' + (r'(align|atomic|begin|break|by|cobegin|coforall|continue|' r'delete|dmapped|do|domain|else|enum|export|extern|for|forall|' - r'if|index|inline|label|lambda|let|local|new|on|otherwise|' - r'reduce|return|scan|select|serial|single|sparse|' + 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', Keyword), (r'(proc)((?:\s|\\\s)+)', bygroups(Keyword, Text), 'procname'), @@ -3947,14 +3947,14 @@ class ChapelLexer(RegexLexer): # -- hex (r'0[xX][0-9a-fA-F]+', Number.Hex), # -- decimal - (r'(0|[1-9][0-9]*)', Number.Integer), + (r'[0-9]+', Number.Integer), # strings (r'["\'](\\\\|\\"|[^"\'])*["\']', String), # tokens (r'(=|\+=|-=|\*=|/=|\*\*=|%=|&=|\|=|\^=|&&=|\|\|=|<<=|>>=|' - r'<=>|\.\.|by|#|\.\.\.|' + r'<=>|<~>|\.\.|by|#|\.\.\.|' r'&&|\|\||!|&|\||\^|~|<<|>>|' r'==|!=|<=|>=|<|>|' r'[+\-*/%]|\*\*)', Operator), |