codetools: fix GroupLocalVariables for ranged types. Issue #29519

git-svn-id: trunk@51433 -
This commit is contained in:
ondrej 2016-01-27 23:13:43 +00:00
parent 380b2f5724
commit b36d8209aa

View File

@ -1211,7 +1211,7 @@ begin
begin
if (VarNode.Desc = ctnVarDefinition) and Assigned(VarNode.LastChild) and
(VarNode.LastChild.Desc = ctnIdentifier) and
(CompareIdentifiers(PChar(VariableType), PChar(ExtractNode(VarNode.LastChild,[phpCommentsToSpace]))) = 0)
(CompareTextIgnoringSpace(VariableType,ExtractNode(VarNode.LastChild,[phpCommentsToSpace]),False) = 0)
then
VarTypeNode := VarNode;
VarNode := VarNode.PriorBrother;