Consolidate single-char tokens in ada-lex.l

There are two rules in ada-lex.l that match single-character tokens.
This merges them.

Also, this removes '.' from the list of such tokens.  '.' is not used
in any production in ada-exp.y, and removing it here helps the
subsequent completion patches.
This commit is contained in:
Tom Tromey
2022-02-23 08:48:40 -07:00
parent 02a8d05fc6
commit 484e7c5ff5

View File

@ -265,7 +265,7 @@ false { return FALSEKEYWORD; }
<BEFORE_QUAL_QUOTE>"'"/{NOT_COMPLETE} { BEGIN INITIAL; return '\''; }
[-&*+./:<>=|;\[\]] { return yytext[0]; }
[-&*+{}@/:<>=|;\[\]] { return yytext[0]; }
"," { if (paren_depth == 0 && pstate->comma_terminates)
{
@ -319,8 +319,6 @@ false { return FALSEKEYWORD; }
"::" { return COLONCOLON; }
[{}@] { return yytext[0]; }
/* REGISTERS AND GDB CONVENIENCE VARIABLES */
"$"({LETTER}|{DIG}|"$")* {