diff options
author | Masen Furer <devnull@localhost> | 2013-01-11 19:05:35 -0800 |
---|---|---|
committer | Masen Furer <devnull@localhost> | 2013-01-11 19:05:35 -0800 |
commit | 852c13d0adecc3b618a3d8a7297aead53b1bb2e5 (patch) | |
tree | d7a3dfda71896e6906ab4637d445b55a8dae7bb2 | |
parent | 3976540fd6f895ea34513e675eee17bea3b73f3c (diff) | |
download | pygments-852c13d0adecc3b618a3d8a7297aead53b1bb2e5.tar.gz |
AdaLexer: added additional built-in/standard types
Some of these are new in Ada 2012
ref: http://www.ada-auth.org/standards/12rm/html/RM-Q-2.html
-rw-r--r-- | pygments/lexers/compiled.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index 65cf2778..4eadbe7e 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -2190,10 +2190,12 @@ class AdaLexer(RegexLexer): (r'(pragma)(\s+)([a-zA-Z0-9_]+)', bygroups(Keyword.Reserved, Text, Comment.Preproc)), (r'(true|false|null)\b', Keyword.Constant), - (r'(Byte|Character|Float|Integer|Long_Float|Long_Integer|' - r'Long_Long_Float|Long_Long_Integer|Natural|Positive|Short_Float|' - r'Short_Integer|Short_Short_Float|Short_Short_Integer|String|' - r'Wide_String|Duration)\b', Keyword.Type), + (r'(Address|Byte|Boolean|Character|Controlled|Count|Cursor|' + r'Duration|File_Mode|File_Type|Float|Generator|Integer|Long_Float|' + r'Long_Integer|Long_Long_Float|Long_Long_Integer|Natural|Positive|' + r'Reference_Type|Short_Float|Short_Integer|Short_Short_Float|' + r'Short_Short_Integer|String|Wide_Character|Wide_String)\b', + Keyword.Type), (r'(and(\s+then)?|in|mod|not|or(\s+else)|rem)\b', Operator.Word), (r'generic|private', Keyword.Declaration), (r'package', Keyword.Declaration, 'package'), |