codetools: support hint modifiers not separated with semicolons as shown in FPC r32985 #207d40aab6, issue #29461.

git-svn-id: trunk@51396 -
This commit is contained in:
ondrej 2016-01-23 23:28:42 +00:00
parent 7758c1e4ae
commit 3fc41dac19

View File

@ -3505,9 +3505,11 @@ begin
ReadConstant(true,false,[]);
CurNode.EndPos:=CurPos.StartPos;
end;
EndChildNode;
if IsModifier then // support modifiers not separated with semicolons: "faVolumeId = $00000008 platform deprecated;"
continue;
if not (CurPos.Flag in AllowedAtomsBehind) then
SaveRaiseCharExpectedButAtomFound(';');
EndChildNode;
if CurPos.Flag<>cafSemicolon then
break;
ReadNextAtom;