codetools: fixed result, issue #35632

git-svn-id: branches/fixes_2_0@61374 -
This commit is contained in:
mattias 2019-06-12 22:22:36 +00:00
parent 028c96f490
commit c41077d28a

View File

@ -2579,8 +2579,10 @@ begin
Result:=KeyWordFuncList.DoItCaseInsensitive(Src,CurPos.StartPos,
CurPos.EndPos-CurPos.StartPos)
else if c='[' then begin
if [cmsPrefixedAttributes,cmsIgnoreAttributes]*Scanner.CompilerModeSwitches<>[] then
ReadAttribute
if [cmsPrefixedAttributes,cmsIgnoreAttributes]*Scanner.CompilerModeSwitches<>[] then begin
ReadAttribute;
Result:=true;
end
else begin
Result:=ReadTilBracketClose(true);
end;