Skip to content

Commit

Permalink
Add 'some' Ada reserved word (#1581)
Browse files Browse the repository at this point in the history
The some Ada reserved word is available since Ada 2012, it is used in the same context as the any keyword.
See RM 2.9 - Reserved Words https://www.adaic.org/resources/add_content/standards/12rm/html/RM-2-9.html for a list of keywords (with this inclusion, all are covered if I'm not mistaken)
and for usage example
See RM 4.5.8 - Quantified expressions  https://www.adaic.org/resources/add_content/standards/12rm/html/RM-4-5-8.html
  • Loading branch information
leogermond committed Oct 27, 2020
1 parent 164dcb5 commit 373aef4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pygments/lexers/pascal.py
Expand Up @@ -563,9 +563,9 @@ class AdaLexer(RegexLexer):
'exception', 'exit', 'interface', 'for', 'goto', 'if', 'is', 'limited',
'loop', 'new', 'null', 'of', 'or', 'others', 'out', 'overriding',
'pragma', 'protected', 'raise', 'range', 'record', 'renames', 'requeue',
'return', 'reverse', 'select', 'separate', 'subtype', 'synchronized',
'task', 'tagged', 'terminate', 'then', 'type', 'until', 'when',
'while', 'xor'), prefix=r'\b', suffix=r'\b'),
'return', 'reverse', 'select', 'separate', 'some', 'subtype',
'synchronized', 'task', 'tagged', 'terminate', 'then', 'type', 'until',
'when', 'while', 'xor'), prefix=r'\b', suffix=r'\b'),
Keyword.Reserved),
(r'"[^"]*"', String),
include('attribute'),
Expand Down

0 comments on commit 373aef4

Please sign in to comment.