Fix flex 2.6.2 bug, bug1103.

This commit is contained in:
Wilson Snyder 2016-11-06 08:14:05 -05:00
parent e52f5f1b63
commit b748ddfe06
3 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,8 @@ The contributors that suggested a given feature are shown in []. Thanks!
*** Honor --output-split on coverage constructors, bug1098. [Johan Bjork]
**** Fix flex 2.6.2 bug, bug1103. [Sergey Kvachonok]
**** Fix error on bad interface name, bug1097. [Todd Strader]
**** Fix error on referencing variable in parent, bug1099. [Ian Thompson]

View File

@ -210,7 +210,7 @@ drop [\032]
<ARGMODE>[(] { LEXP->m_parenLevel++;
// Note paren level 0 means before "(" of starting args
// Level 1 means "," between arguments
// Level 2+ means one argument's internal ()
// Level 2+ means one inside the () of an argument
if (LEXP->m_parenLevel>1) {
appendDefValue(yytext,yyleng);
} else {

View File

@ -821,7 +821,7 @@ vnum {vnum1}|{vnum2}|{vnum3}|{vnum4}|{vnum5}
// Push rest for later parse
PARSEP->unputString(yytext+shortlen, yyleng-shortlen);
FL; LINECHECKS(yytext,shortlen);
// Return is stuff before '
// Return is stuff before the tick
yytext[shortlen] = '\0';
yylval.nump = PARSEP->newNumber(yylval.fl, (char*)yytext);
return yaINTNUM;