8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 00:03:02 +01:00

Let ExtDS preprocessor handle '\r', '\n' and '\r\n' as end of line.

This commit is contained in:
hvlad 2018-03-31 00:39:34 +03:00
parent 57f2f69268
commit 606d91fd29

View File

@ -1074,15 +1074,19 @@ static TokenType getToken(const char** begin, const char* end)
case '-':
if (p < end && *p == '-')
{
while (p < end)
while (++p < end)
{
if (*p++ == '\n')
if (*p == '\r')
{
p--;
ret = ttComment;
p++;
if (p < end && *p == '\n')
p++;
break;
}
else if (*p == '\n')
break;
}
ret = ttComment;
}
else {
ret = ttOther;