mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-04 17:18:16 +02:00
SynEdit: fix endless XML HL, do not return empty tokens.
This commit is contained in:
parent
6b9d5774e7
commit
3c41d81f5d
@ -792,29 +792,33 @@ end;
|
||||
procedure TSynXMLSyn.Next;
|
||||
begin
|
||||
fTokenPos := Run;
|
||||
case fRange of
|
||||
rsText:
|
||||
begin
|
||||
TextProc();
|
||||
while fTokenPos = Run do begin
|
||||
case fRange of
|
||||
rsText:
|
||||
begin
|
||||
TextProc();
|
||||
end;
|
||||
rsComment:
|
||||
begin
|
||||
CommentProc();
|
||||
end;
|
||||
rsProcessingInstruction:
|
||||
begin
|
||||
ProcessingInstructionProc();
|
||||
end;
|
||||
rsDocType, rsDocTypeSquareBraces: //ek 2001-11-11
|
||||
begin
|
||||
DocTypeProc();
|
||||
end;
|
||||
rsCDATA:
|
||||
begin
|
||||
CDATAProc();
|
||||
end;
|
||||
else
|
||||
fProcTable[fLine[Run]]();
|
||||
end;
|
||||
rsComment:
|
||||
begin
|
||||
CommentProc();
|
||||
end;
|
||||
rsProcessingInstruction:
|
||||
begin
|
||||
ProcessingInstructionProc();
|
||||
end;
|
||||
rsDocType, rsDocTypeSquareBraces: //ek 2001-11-11
|
||||
begin
|
||||
DocTypeProc();
|
||||
end;
|
||||
rsCDATA:
|
||||
begin
|
||||
CDATAProc();
|
||||
end;
|
||||
else
|
||||
fProcTable[fLine[Run]]();
|
||||
if fTokenId = tkNull then // EOL
|
||||
break;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user