forked from lda/telodendria
Fix line numbers when parsing multi-line macros.
This commit is contained in:
parent
2d8d5244c4
commit
a3cc06ff2a
1 changed files with 9 additions and 8 deletions
|
@ -396,18 +396,19 @@ HeaderParse(Stream * stream, HeaderExpr * expr)
|
|||
return;
|
||||
}
|
||||
|
||||
if (c == '\n' && pC != '\\')
|
||||
if (c == '\n')
|
||||
{
|
||||
expr->data.text[i] = '\0';
|
||||
expr->state.lineNo++;
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
expr->data.text[i] = c;
|
||||
i++;
|
||||
if (pC != '\\')
|
||||
{
|
||||
expr->data.text[i] = '\0';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
expr->data.text[i] = c;
|
||||
i++;
|
||||
|
||||
pC = c;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue