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:
parent
57f2f69268
commit
606d91fd29
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user