mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Ensure current_symtab gets set at the start of parsing.
current_symtab must be set even if the first thing encountered is a syntax error.
This commit is contained in:
parent
69b889756d
commit
34ffce50fa
1 changed files with 3 additions and 3 deletions
|
@ -246,9 +246,9 @@ defs
|
|||
}
|
||||
| defs def
|
||||
| defs obj_def
|
||||
| error END { current_class = 0; yyerrok; }
|
||||
| error ';' { yyerrok; }
|
||||
| error '}' { yyerrok; }
|
||||
| error END { current_class = 0; yyerrok; current_symtab = pr.symtab; }
|
||||
| error ';' { yyerrok; current_symtab = pr.symtab; }
|
||||
| error '}' { yyerrok; current_symtab = pr.symtab; }
|
||||
;
|
||||
|
||||
def
|
||||
|
|
Loading…
Reference in a new issue