projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0daa5af
)
Simplify a regular expression in ada-lex.l
author
Tom Tromey
<tromey@adacore.com>
Thu, 3 Feb 2022 20:12:21 +0000
(13:12 -0700)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/gdb/ada-lex.l
b/gdb/ada-lex.l
index f61efba81a9637bf57e415c934a361214eb901a9..a1e194236911d9909f740d07e020b43b5e710ad5 100644
(file)
--- a/
gdb/ada-lex.l
+++ b/
gdb/ada-lex.l
@@
-220,7
+220,7
@@
false { return FALSEKEYWORD; }
/* ATTRIBUTES */
-{TICK}[a-z
A-Z][a-zA-Z
_]+ { BEGIN INITIAL; return processAttribute (yytext+1); }
+{TICK}[a-z
][a-z
_]+ { BEGIN INITIAL; return processAttribute (yytext+1); }
/* PUNCTUATION */