ape/make: fix \ line continuation parsing

This commit is contained in:
cinap_lenrek 2018-09-13 11:54:20 +02:00
parent 5ea7337ae7
commit a33d76f8c9

View file

@ -321,6 +321,7 @@ else {
break; break;
case '\n': case '\n':
do {
++yylineno; ++yylineno;
if(p==yytext || p[-1]!='\\') if(p==yytext || p[-1]!='\\')
{ {
@ -328,10 +329,9 @@ else {
goto endloop; goto endloop;
} }
p[-1] = ' '; p[-1] = ' ';
while( (kc=getc(fin))=='\t' || kc==' ' || kc=='\n') while( (kc=getc(fin))=='\t' || kc==' ')
if(kc == '\n') ;
++yylineno; } while(kc == '\n');
if(kc != EOF) if(kc != EOF)
break; break;
case EOF: case EOF: