codetools: CreateVariableForIdentifier: give error message if syntax not supported

git-svn-id: trunk@45341 -
This commit is contained in:
mattias 2014-06-04 19:20:42 +00:00
parent 23870bf288
commit ee966ac457

View File

@ -8865,6 +8865,9 @@ begin
Result:=CompleteLocalIdentifierByParameter(CleanCursorPos,OldTopLine,
CursorNode,NewPos,NewTopLine,SourceChangeCache);
if Result then exit;
MoveCursorToCleanPos(CleanCursorPos);
RaiseException('this syntax is not supported by variable completion');
end;
function TCodeCompletionCodeTool.AddMethods(CursorPos: TCodeXYPosition;