]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
scng.adb: Do not consider Mod used as an attribute to be a keyword
authorRobert Dewar <dewar@adacore.com>
Mon, 4 Jul 2005 13:29:08 +0000 (15:29 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 4 Jul 2005 13:29:08 +0000 (15:29 +0200)
2005-07-04  Robert Dewar  <dewar@adacore.com>

* scng.adb: Do not consider Mod used as an attribute to be a keyword

From-SVN: r101585

gcc/ada/scng.adb

index 163ba170cf7189ab79e05df802996901405d116f..74fdc14a37a61dcb066fa3ea143dd5f4038359c3 100644 (file)
@@ -2330,14 +2330,18 @@ package body Scng is
             --  Ada 2005 (AI-284): Do not apply the style check in case of
             --  "pragma Interface"
 
+            --  Ada 2005 (AI-340): Do not apply the style check in case of
+            --  MOD attribute.
+
             if Style_Check
               and then Source (Token_Ptr) <= 'Z'
               and then (Prev_Token /= Tok_Apostrophe
                           or else
-                            (Token /= Tok_Access
-                               and then Token /= Tok_Delta
-                               and then Token /= Tok_Digits
-                               and then Token /= Tok_Range))
+                            (Token /= Tok_Access and then
+                             Token /= Tok_Delta  and then
+                             Token /= Tok_Digits and then
+                             Token /= Tok_Mod    and then
+                             Token /= Tok_Range))
               and then (Token /= Tok_Interface
                           or else
                             (Token = Tok_Interface