From 69a559df0f96ca7c71caf1cbc084c741372bc6d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Germond?= <1741631+leogermond@users.noreply.github.com> Date: Fri, 23 Oct 2020 15:18:14 +0200 Subject: [PATCH] Add 'some' Ada reserved word 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 --- pygments/lexers/pascal.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pygments/lexers/pascal.py b/pygments/lexers/pascal.py index 7e0223d6db..6756e23411 100644 --- a/pygments/lexers/pascal.py +++ b/pygments/lexers/pascal.py @@ -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'),