mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 07:08:01 +08:00
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:
@ -265,7 +265,7 @@ false { return FALSEKEYWORD; }
|
|||||||
|
|
||||||
<BEFORE_QUAL_QUOTE>"'"/{NOT_COMPLETE} { BEGIN INITIAL; return '\''; }
|
<BEFORE_QUAL_QUOTE>"'"/{NOT_COMPLETE} { BEGIN INITIAL; return '\''; }
|
||||||
|
|
||||||
[-&*+./:<>=|;\[\]] { return yytext[0]; }
|
[-&*+{}@/:<>=|;\[\]] { return yytext[0]; }
|
||||||
|
|
||||||
"," { if (paren_depth == 0 && pstate->comma_terminates)
|
"," { if (paren_depth == 0 && pstate->comma_terminates)
|
||||||
{
|
{
|
||||||
@ -319,8 +319,6 @@ false { return FALSEKEYWORD; }
|
|||||||
|
|
||||||
"::" { return COLONCOLON; }
|
"::" { return COLONCOLON; }
|
||||||
|
|
||||||
[{}@] { return yytext[0]; }
|
|
||||||
|
|
||||||
/* REGISTERS AND GDB CONVENIENCE VARIABLES */
|
/* REGISTERS AND GDB CONVENIENCE VARIABLES */
|
||||||
|
|
||||||
"$"({LETTER}|{DIG}|"$")* {
|
"$"({LETTER}|{DIG}|"$")* {
|
||||||
|
Reference in New Issue
Block a user