public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Simplify a regular expression in ada-lex.l
@ 2022-03-07 14:55 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2022-03-07 14:55 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a320f135ddb4726474394841a19f3e2cba216ff3

commit a320f135ddb4726474394841a19f3e2cba216ff3
Author: Tom Tromey <tromey@adacore.com>
Date:   Thu Feb 3 13:12:21 2022 -0700

    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:
---
 gdb/ada-lex.l | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-07 14:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-07 14:55 [binutils-gdb] Simplify a regular expression in ada-lex.l Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).