You have some non printable characters in your source, probably.
I had the same problem using sources from the fpc project.
The line that shows the error does not realy need to be the wrong line.
Try to write a smal prog to scan the source
sample code :
var
sl : TStringList;
s : String;
i : integer;
begin
sl := TStringList.create;
sl.LoadFromFile('...your file name...');
s := AdjustLineBreaks(sl.text);
for i := 1 to length(s) do begin
if (s[ i ] < ' ') and not (s in [#13,#10]) then begin
s [ i ] := ' ';
end;
end;
sl.text := s;
sl.SaveToFile('modified.pas');
end;
this should help.