mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 08:09:26 +02:00
codetools: CreateVariableForIdentifier: give error message if syntax not supported
git-svn-id: trunk@45341 -
This commit is contained in:
parent
23870bf288
commit
ee966ac457
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user