mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 00:19:22 +02:00
codetools: identifier completion: ignore parser errors when gathering keywords, bug #20919
git-svn-id: trunk@41886 -
This commit is contained in:
parent
8cc06e0b18
commit
7b17aaf0b3
@ -1637,6 +1637,7 @@ var
|
|||||||
p: Integer;
|
p: Integer;
|
||||||
NodeBehind: TCodeTreeNode;
|
NodeBehind: TCodeTreeNode;
|
||||||
begin
|
begin
|
||||||
|
try
|
||||||
Node:=Context.Node;
|
Node:=Context.Node;
|
||||||
//debugln(['TIdentCompletionTool.GatherContextKeywords ',Node.DescAsString]);
|
//debugln(['TIdentCompletionTool.GatherContextKeywords ',Node.DescAsString]);
|
||||||
|
|
||||||
@ -1793,6 +1794,11 @@ begin
|
|||||||
CheckProperty(Node);
|
CheckProperty(Node);
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
except
|
||||||
|
// ignore parser errors
|
||||||
|
on E: ECodeToolError do ;
|
||||||
|
on E: ELinkScannerError do ;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TIdentCompletionTool.InitCollectIdentifiers(
|
procedure TIdentCompletionTool.InitCollectIdentifiers(
|
||||||
|
Loading…
Reference in New Issue
Block a user