IDE: fixed parsing IDEDirectives with flags

git-svn-id: trunk@14942 -
This commit is contained in:
mattias 2008-04-23 15:49:36 +00:00
parent 1d9a456c64
commit a87a738d15
2 changed files with 6 additions and 2 deletions

View File

@ -268,8 +268,11 @@ begin
exit;
end;
case DirectiveValue[ReadPos] of
'+': CurValue:=true;
'-': CurValue:=false;
'+','-':
begin
CurValue:=DirectiveValue[ReadPos]='+';
inc(ReadPos);
end;
' ':
begin
if not ReadNextWord(ReadPos,ValueStart,ValueEnd) then exit;

View File

@ -9676,6 +9676,7 @@ begin
end;
end else begin
StringToStringList(AnUnitInfo.CustomData['IDEDirectives'],DirectiveList);
//DebugLn(['TMainIDE.GetIDEDirectives ',dbgstr(DirectiveList.Text)]);
end;
Result:=mrOk;
end;