mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 02:09:14 +02:00
fcl-passrc: fixed result of TPascalScanner.SetForceCaret
git-svn-id: trunk@36720 -
This commit is contained in:
parent
c788256fc9
commit
9cc3bc0a47
@ -610,7 +610,7 @@ type
|
|||||||
function RemoveMacro(const aName: String; Quiet: boolean = false): boolean;
|
function RemoveMacro(const aName: String; Quiet: boolean = false): boolean;
|
||||||
Procedure SetCompilerMode(S : String);
|
Procedure SetCompilerMode(S : String);
|
||||||
function CurSourcePos: TPasSourcePos;
|
function CurSourcePos: TPasSourcePos;
|
||||||
Function SetForceCaret(AValue : Boolean) : Boolean;
|
Function SetForceCaret(AValue : Boolean) : Boolean; // returns old state
|
||||||
property FileResolver: TBaseFileResolver read FFileResolver;
|
property FileResolver: TBaseFileResolver read FFileResolver;
|
||||||
property CurSourceFile: TLineReader read FCurSourceFile;
|
property CurSourceFile: TLineReader read FCurSourceFile;
|
||||||
property CurFilename: string read FCurFilename;
|
property CurFilename: string read FCurFilename;
|
||||||
@ -3700,6 +3700,7 @@ end;
|
|||||||
function TPascalScanner.SetForceCaret(AValue: Boolean): Boolean;
|
function TPascalScanner.SetForceCaret(AValue: Boolean): Boolean;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
Result:=toForceCaret in FTokenOptions;
|
||||||
if aValue then
|
if aValue then
|
||||||
Include(FTokenOptions,toForceCaret)
|
Include(FTokenOptions,toForceCaret)
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user