fix #27, the highlighter does not handle the script line

This commit is contained in:
Basile Burg 2015-08-23 16:30:57 +02:00
parent c3e26c9df3
commit a4139bdfc1
1 changed files with 9 additions and 0 deletions

View File

@ -487,6 +487,15 @@ begin
if fTokStop > length(fLineBuf) then exit;
readerReset;
// script line
if LineIndex = 0 then if fTokStart = 1 then
if readDelim(reader, fTokStop, '#!') then
begin
fTokKind := tkCommt;
readLine(reader, fTokStop);
exit;
end else readerReset;
// spaces
if (isWhite(reader^)) then
begin