codetools: identifier completion: added mode directives

git-svn-id: trunk@37287 -
This commit is contained in:
mattias 2012-05-15 10:21:47 +00:00
parent e7dd80db45
commit b05ef05a04

View File

@ -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');