mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 15:19:29 +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
|
// -> find it and jump to
|
||||||
|
|
||||||
// reparse code
|
// reparse code
|
||||||
BuildTreeAndGetCleanPos(trAll,CursorPos,CleanCursorPos);
|
BuildTreeAndGetCleanPos(trAll,CursorPos,CleanCursorPos,[]);
|
||||||
// find CodeTreeNode at cursor
|
// find CodeTreeNode at cursor
|
||||||
CursorNode:=FindDeepestNodeAtPos(CleanCursorPos,true);
|
CursorNode:=FindDeepestNodeAtPos(CleanCursorPos,true);
|
||||||
|
|
||||||
@ -1938,12 +1938,15 @@ var CleanCursorPos, Indent, insertPos: integer;
|
|||||||
CompleteCode:=true;
|
CompleteCode:=true;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
// function CompleteCode(CursorPos: TCodeXYPosition;
|
||||||
|
// var NewPos: TCodeXYPosition; var NewTopLine: integer;
|
||||||
|
// SourceChangeCache: TSourceChangeCache): boolean;
|
||||||
begin
|
begin
|
||||||
Result:=false;
|
Result:=false;
|
||||||
if (SourceChangeCache=nil) then
|
if (SourceChangeCache=nil) then
|
||||||
RaiseException('need a SourceChangeCache');
|
RaiseException('need a SourceChangeCache');
|
||||||
// in a class or in a forward proc?
|
// in a class or in a forward proc?
|
||||||
BuildTreeAndGetCleanPos(trAll,CursorPos, CleanCursorPos);
|
BuildTreeAndGetCleanPos(trAll,CursorPos, CleanCursorPos,[]);
|
||||||
// find CodeTreeNode at cursor
|
// find CodeTreeNode at cursor
|
||||||
CursorNode:=FindDeepestNodeAtPos(CleanCursorPos,true);
|
CursorNode:=FindDeepestNodeAtPos(CleanCursorPos,true);
|
||||||
CodeCompleteSrcChgCache:=SourceChangeCache;
|
CodeCompleteSrcChgCache:=SourceChangeCache;
|
||||||
|
@ -56,7 +56,7 @@ ResourceString
|
|||||||
ctsBracketOpenExpectedButAtomFound = 'bracket open expected, but %s found';
|
ctsBracketOpenExpectedButAtomFound = 'bracket open expected, but %s found';
|
||||||
ctsBracketCloseExpectedButAtomFound = 'bracket close expected, but %s found';
|
ctsBracketCloseExpectedButAtomFound = 'bracket close expected, but %s found';
|
||||||
ctsBracketNotFound = 'bracket %s not 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)';
|
ctsUnknownMainFilename = '(unknown mainfilename)';
|
||||||
|
|
||||||
// pascal parser
|
// pascal parser
|
||||||
|
Loading…
Reference in New Issue
Block a user