mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 19:02:31 +02:00
codetools: ReadRawNextPascalAtom reading UTF8-BOM
git-svn-id: trunk@19194 -
This commit is contained in:
parent
16cd122d2e
commit
93bf18b032
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user