diff options
Diffstat (limited to 'gdb/ada-lex.l')
-rw-r--r-- | gdb/ada-lex.l | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/ada-lex.l b/gdb/ada-lex.l index 17ac7e5..6163405 100644 --- a/gdb/ada-lex.l +++ b/gdb/ada-lex.l @@ -84,6 +84,9 @@ static void rewind_to_char (int); static int find_dot_all (const char *); +/* Depth of parentheses. */ +static int paren_depth; + %} %option case-insensitive interactive nodefault @@ -305,6 +308,7 @@ static void lexer_init (FILE *inp) { BEGIN INITIAL; + paren_depth = 0; yyrestart (inp); } |