From: Tom Tromey Date: Thu, 3 Feb 2022 20:12:21 +0000 (-0700) Subject: Simplify a regular expression in ada-lex.l X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a320f135ddb4726474394841a19f3e2cba216ff3;p=binutils-gdb.git Simplify a regular expression in ada-lex.l ada-lex.l uses "%option case-insensitive", so there is no need for regular expressions to match upper case. --- diff --git a/gdb/ada-lex.l b/gdb/ada-lex.l index f61efba81a9..a1e19423691 100644 --- a/gdb/ada-lex.l +++ b/gdb/ada-lex.l @@ -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 */