mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 07:29:34 +02:00
IDE: fixed parsing IDEDirectives with flags
git-svn-id: trunk@14942 -
This commit is contained in:
parent
1d9a456c64
commit
a87a738d15
@ -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;
|
||||
|
@ -9676,6 +9676,7 @@ begin
|
||||
end;
|
||||
end else begin
|
||||
StringToStringList(AnUnitInfo.CustomData['IDEDirectives'],DirectiveList);
|
||||
//DebugLn(['TMainIDE.GetIDEDirectives ',dbgstr(DirectiveList.Text)]);
|
||||
end;
|
||||
Result:=mrOk;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user