mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 07:19:22 +02:00
codetools: identifier completion: added mode directives
git-svn-id: trunk@37287 -
This commit is contained in:
parent
e7dd80db45
commit
b05ef05a04
@ -2000,6 +2000,7 @@ var
|
||||
InnerStart: Integer;
|
||||
Directive: String;
|
||||
ms: TCompilerModeSwitch;
|
||||
cm: TCompilerMode;
|
||||
begin
|
||||
Result:=false;
|
||||
Line:=CursorPos.Code.GetLine(CursorPos.Y-1);
|
||||
@ -2112,6 +2113,9 @@ begin
|
||||
end else if Directive='modeswitch' then begin
|
||||
for ms:=low(TCompilerModeSwitch) to high(TCompilerModeSwitch) do
|
||||
Key(lowercase(CompilerModeSwitchNames[ms]));
|
||||
end else if Directive='mode' then begin
|
||||
for cm:=low(TCompilerMode) to high(TCompilerMode) do
|
||||
Key(lowercase(CompilerModeNames[cm]));
|
||||
end else if Directive='warn' then begin
|
||||
Key('constructing_abstract');
|
||||
Key('implicit_variants');
|
||||
|
Loading…
Reference in New Issue
Block a user