mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Try to fix SynEdit's double minus comment bug. http://www.heidisql.com/forum.php?t=15621
This commit is contained in:
@ -1198,7 +1198,7 @@ begin
|
|||||||
Result := 0;
|
Result := 0;
|
||||||
while IsIdentChar(Str^) do
|
while IsIdentChar(Str^) do
|
||||||
begin
|
begin
|
||||||
FoundDoubleMinus := (Str^ = '-') and ((Str + 1)^ = '-');
|
FoundDoubleMinus := (Str^ = '-') and ((Str + 1)^ = '-') and ((Str + 2)^ = ' ');
|
||||||
if FoundDoubleMinus then Break;
|
if FoundDoubleMinus then Break;
|
||||||
{$IFOPT Q-}
|
{$IFOPT Q-}
|
||||||
Result := 2 * Result + GetOrd;
|
Result := 2 * Result + GetOrd;
|
||||||
@ -1409,7 +1409,7 @@ begin
|
|||||||
else
|
else
|
||||||
while IsIdentChar(fLine[Run]) do
|
while IsIdentChar(fLine[Run]) do
|
||||||
begin
|
begin
|
||||||
FoundDoubleMinus := (fLine[Run] = '-') and (fLine[Run + 1] = '-');
|
FoundDoubleMinus := (fLine[Run] = '-') and (fLine[Run + 1] = '-') and (fLine[Run + 2] = ' ');
|
||||||
if FoundDoubleMinus then Break;
|
if FoundDoubleMinus then Break;
|
||||||
inc(Run);
|
inc(Run);
|
||||||
end;
|
end;
|
||||||
@ -1657,7 +1657,7 @@ begin
|
|||||||
fTokenID := tkVariable;
|
fTokenID := tkVariable;
|
||||||
i := Run;
|
i := Run;
|
||||||
repeat
|
repeat
|
||||||
FoundDoubleMinus := (fLine[i] = '-') and (fLine[i + 1] = '-');
|
FoundDoubleMinus := (fLine[i] = '-') and (fLine[i + 1] = '-') and (fLine[i + 2] = ' ');
|
||||||
if FoundDoubleMinus then Break;
|
if FoundDoubleMinus then Break;
|
||||||
Inc(i);
|
Inc(i);
|
||||||
until not IsIdentChar(fLine[i]);
|
until not IsIdentChar(fLine[i]);
|
||||||
|
Reference in New Issue
Block a user