IDE: fpc parser: get parameter on message with id

git-svn-id: trunk@45261 -
This commit is contained in:
mattias 2014-05-31 22:10:46 +00:00
parent e7674e7143
commit ec104c23e8
2 changed files with 6 additions and 4 deletions

View File

@ -2433,9 +2433,11 @@ begin
Value1:='';
Value2:='';
if Msg=nil then exit(false);
if Msg.MsgID=MsgId then exit(true);
if Msg.MsgID<>0 then exit(false);
if Msg.SubTool<>SubToolFPC then exit(false);
if Msg.MsgID<>MsgId then begin
if Msg.MsgID<>0 then exit(false);
if Msg.SubTool<>SubToolFPC then exit(false);
end;
Result:=true;
aFPCParser:=GetFPCParser(Msg);
if aFPCParser=nil then exit;
Pattern:=aFPCParser.GetFPCMsgIDPattern(MsgId);

View File

@ -29,7 +29,7 @@ unit etSrcEditMarks;
{$IFNDEF EnableNewExtTools}{$Error Wrong}{$ENDIF}
{$DEFINE VerboseETSrcChange}
{off $DEFINE VerboseETSrcChange}
interface