SynEdit C++ Highlighter: Fixed closing multi line string, if closing quote is at start of line. issue #0013502

git-svn-id: trunk@19411 -
This commit is contained in:
martin 2009-04-13 16:22:51 +00:00
parent c0a5880b5c
commit a6e6bbabb7

View File

@ -1373,13 +1373,16 @@ begin
end;
end;
fTokenID := tkString;
repeat
if fLine[Run] = '\' then begin
if fLine[Run + 1] in [#34, '\'] then //ek 2000-04-26
Inc(Run);
end;
inc(Run);
until fLine[Run] in [#0, #10, #13, #34];
if not((fRange in [rsAsmBlockString,rsAsmString,rsDirectiveString,rsString])
and (Run = 0) and (FLine[Run] = #34 ))
then
repeat
if fLine[Run] = '\' then begin
if fLine[Run + 1] in [#34, '\'] then //ek 2000-04-26
Inc(Run);
end;
inc(Run);
until fLine[Run] in [#0, #10, #13, #34];
if FLine[Run] = #34 then begin
inc(Run);
fRange := SynCppStringRangeToRange[fRange];