#53 App Freeze with VRML/X3D Highlighter

open
nobody
None
5
2008-01-21
2008-01-21
David Hoyle
No

Hi,

I've tried logging into the tracker system and do this properly but the system will not accept my username and password and reports something about not selecting a group - well I'm not offered a group to select from.

Anyway, I found a bug in the VRML/X3D highlighter which is a show stopper when typing comments. Below is the revised code to fix the problem.

procedure TSynVrml97Syn.X3DDocTypeOpenProc;
begin
if NextTokenIs('DOCTYPE') then
begin
fRange := rsX3DDocType;
X3DDocTypeProc;
fTokenID := tkX3DDocType;
end
else
if NextTokenIs('--') then
begin
fRange := rsComment;
InCommentProc;
fTokenID := tkComment;
end
else
Begin // NEW
fTokenID := tkSymbol;
Inc(Run); // NEW
End; // NEW
end;

regards
Dave.

Discussion


Log in to post a comment.