ape/make: fix \ line continuation parsing
This commit is contained in:
parent
5ea7337ae7
commit
a33d76f8c9
1 changed files with 11 additions and 11 deletions
|
@ -321,17 +321,17 @@ else {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '\n':
|
case '\n':
|
||||||
++yylineno;
|
do {
|
||||||
if(p==yytext || p[-1]!='\\')
|
++yylineno;
|
||||||
{
|
if(p==yytext || p[-1]!='\\')
|
||||||
*p = '\0';
|
{
|
||||||
goto endloop;
|
*p = '\0';
|
||||||
}
|
goto endloop;
|
||||||
p[-1] = ' ';
|
}
|
||||||
while( (kc=getc(fin))=='\t' || kc==' ' || kc=='\n')
|
p[-1] = ' ';
|
||||||
if(kc == '\n')
|
while( (kc=getc(fin))=='\t' || kc==' ')
|
||||||
++yylineno;
|
;
|
||||||
|
} while(kc == '\n');
|
||||||
if(kc != EOF)
|
if(kc != EOF)
|
||||||
break;
|
break;
|
||||||
case EOF:
|
case EOF:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue