codetools: fixed result, issue #35632

git-svn-id: trunk@61373 -
This commit is contained in:
mattias 2019-06-12 22:22:15 +00:00
parent ae53b22501
commit d86e447ba3

View File

@ -2597,8 +2597,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;