codetools: ReadRawNextPascalAtom reading UTF8-BOM

git-svn-id: trunk@19194 -
This commit is contained in:
mattias 2009-04-01 21:11:54 +00:00
parent 16cd122d2e
commit 93bf18b032

View File

@ -1599,6 +1599,14 @@ begin
begin
inc(Position);
end;
#$EF:
if (Source[Position+1]=#$BB)
and (Source[Position+2]=#$BF) then begin
// skip UTF BOM
inc(Position,3);
end else begin
break;
end;
'{': // comment start or compiler directive
begin
if (Position<Len) and (Source[Position+1]='$') then