Simplify a regular expression in ada-lex.l
authorTom Tromey <tromey@adacore.com>
Thu, 3 Feb 2022 20:12:21 +0000 (13:12 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 7 Mar 2022 14:52:59 +0000 (07:52 -0700)
ada-lex.l uses "%option case-insensitive", so there is no need for
regular expressions to match upper case.

gdb/ada-lex.l

index f61efba81a9637bf57e415c934a361214eb901a9..a1e194236911d9909f740d07e020b43b5e710ad5 100644 (file)
@@ -220,7 +220,7 @@ false               { return FALSEKEYWORD; }
 
         /* ATTRIBUTES */
 
-{TICK}[a-zA-Z][a-zA-Z_]+ { BEGIN INITIAL; return processAttribute (yytext+1); }
+{TICK}[a-z][a-z_]+ { BEGIN INITIAL; return processAttribute (yytext+1); }
 
        /* PUNCTUATION */