mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-05 12:47:27 +01:00
* Additional options for latest pas2js version features
git-svn-id: trunk@46230 -
This commit is contained in:
parent
869ae0904c
commit
2faa9e06a1
@ -302,7 +302,7 @@ begin
|
||||
FileResolver.AddIncludePath(S);
|
||||
// Scanner
|
||||
Scanner := TPascalScanner.Create(FileResolver);
|
||||
Scanner.Options:=[po_AsmWhole,po_KeepClassForward];
|
||||
Scanner.Options:=[po_AsmWhole,po_KeepClassForward,po_ExtConstWithoutExpr];
|
||||
SCanner.LogEvents:=SE.ScannerLogEvents;
|
||||
SCanner.OnLog:=SE.Onlog;
|
||||
For S in FDefines do
|
||||
@ -312,7 +312,7 @@ begin
|
||||
Parser:=TPasParser.Create(Scanner, FileResolver, SE);
|
||||
Parser.LogEvents:=SE.ParserLogEvents;
|
||||
Parser.OnLog:=SE.Onlog;
|
||||
Parser.Options:=Parser.Options+[po_AsmWhole,po_delphi,po_KeepClassForward];
|
||||
Parser.Options:=Parser.Options+[po_AsmWhole,po_delphi,po_KeepClassForward,po_ExtConstWithoutExpr,po_AsyncProcs];
|
||||
Parser.ParseMain(Result);
|
||||
finally
|
||||
Parser.Free;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user