aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lex.l
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-02-03 13:12:21 -0700
committerTom Tromey <tromey@adacore.com>2022-03-07 07:52:59 -0700
commita320f135ddb4726474394841a19f3e2cba216ff3 (patch)
tree837bd0aa853d65da0bbdbd24f08ac3a27d5a4ff7 /gdb/ada-lex.l
parent0daa5af85a9b5548a1bd7e8085a326162b41fd6f (diff)
downloadgdb-a320f135ddb4726474394841a19f3e2cba216ff3.zip
gdb-a320f135ddb4726474394841a19f3e2cba216ff3.tar.gz
gdb-a320f135ddb4726474394841a19f3e2cba216ff3.tar.bz2
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.
Diffstat (limited to 'gdb/ada-lex.l')
-rw-r--r--gdb/ada-lex.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lex.l b/gdb/ada-lex.l
index f61efba..a1e1942 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 */