mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-21 03:39:18 +02:00
MG: implemented IgnoreErrorAfter position for codetools
git-svn-id: trunk@3135 -
This commit is contained in:
parent
8608762170
commit
b0513667c6
@ -1560,7 +1560,7 @@ var CleanCursorPos, Indent, insertPos: integer;
|
||||
// -> find it and jump to
|
||||
|
||||
// reparse code
|
||||
BuildTreeAndGetCleanPos(trAll,CursorPos,CleanCursorPos);
|
||||
BuildTreeAndGetCleanPos(trAll,CursorPos,CleanCursorPos,[]);
|
||||
// find CodeTreeNode at cursor
|
||||
CursorNode:=FindDeepestNodeAtPos(CleanCursorPos,true);
|
||||
|
||||
@ -1938,12 +1938,15 @@ var CleanCursorPos, Indent, insertPos: integer;
|
||||
CompleteCode:=true;
|
||||
end;
|
||||
|
||||
// function CompleteCode(CursorPos: TCodeXYPosition;
|
||||
// var NewPos: TCodeXYPosition; var NewTopLine: integer;
|
||||
// SourceChangeCache: TSourceChangeCache): boolean;
|
||||
begin
|
||||
Result:=false;
|
||||
if (SourceChangeCache=nil) then
|
||||
RaiseException('need a SourceChangeCache');
|
||||
// in a class or in a forward proc?
|
||||
BuildTreeAndGetCleanPos(trAll,CursorPos, CleanCursorPos);
|
||||
BuildTreeAndGetCleanPos(trAll,CursorPos, CleanCursorPos,[]);
|
||||
// find CodeTreeNode at cursor
|
||||
CursorNode:=FindDeepestNodeAtPos(CleanCursorPos,true);
|
||||
CodeCompleteSrcChgCache:=SourceChangeCache;
|
||||
|
@ -56,7 +56,7 @@ ResourceString
|
||||
ctsBracketOpenExpectedButAtomFound = 'bracket open expected, but %s found';
|
||||
ctsBracketCloseExpectedButAtomFound = 'bracket close expected, but %s found';
|
||||
ctsBracketNotFound = 'bracket %s not found';
|
||||
ctsNoNodeFoundAtCursor = 'no node found at cursor';
|
||||
ctsNoNodeFoundAtCursor = 'no pascal node found at cursor (i.e. in unparsed code)';
|
||||
ctsUnknownMainFilename = '(unknown mainfilename)';
|
||||
|
||||
// pascal parser
|
||||
|
Loading…
Reference in New Issue
Block a user