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,17 +396,18 @@ HeaderParse(Stream * stream, HeaderExpr * expr)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c == '\n' && pC != '\\')
|
if (c == '\n')
|
||||||
|
{
|
||||||
|
expr->state.lineNo++;
|
||||||
|
if (pC != '\\')
|
||||||
{
|
{
|
||||||
expr->data.text[i] = '\0';
|
expr->data.text[i] = '\0';
|
||||||
expr->state.lineNo++;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
}
|
||||||
{
|
|
||||||
expr->data.text[i] = c;
|
expr->data.text[i] = c;
|
||||||
i++;
|
i++;
|
||||||
}
|
|
||||||
|
|
||||||
pC = c;
|
pC = c;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue