mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 13:40:21 +02:00
Fix ignoring directives.
This commit is contained in:
parent
bac7142256
commit
a1411d437a
@ -359,6 +359,7 @@ implementation
|
|||||||
*****************************************************************************}
|
*****************************************************************************}
|
||||||
|
|
||||||
const
|
const
|
||||||
|
DirectiveIgnored=pointer(1);
|
||||||
{ use any special name that is an invalid file name to avoid problems }
|
{ use any special name that is an invalid file name to avoid problems }
|
||||||
preprocstring : array [preproctyp] of string[7]
|
preprocstring : array [preproctyp] of string[7]
|
||||||
= ('$IFDEF','$IFNDEF','$IF','$IFOPT','$ELSE','$ELSEIF');
|
= ('$IFDEF','$IFNDEF','$IF','$IFOPT','$ELSE','$ELSEIF');
|
||||||
@ -4527,7 +4528,7 @@ type
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
current_scanner.ignoredirectives.Add(hs,nil);
|
current_scanner.ignoredirectives.Add(hs,DirectiveIgnored);
|
||||||
Message1(scan_w_illegal_directive,'$'+hs);
|
Message1(scan_w_illegal_directive,'$'+hs);
|
||||||
end;
|
end;
|
||||||
{ conditionals already read the comment }
|
{ conditionals already read the comment }
|
||||||
|
Loading…
Reference in New Issue
Block a user