[lazarus] Updates
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri Jan 11 16:41:42 EST 2002
Hi all,
There are two new functions in the IDE:
1. 'Find block end' - This is an advanced version of 'go to matching bracket'. It will jump between brackets, pascal comment brackets, 'begin'..'end', 'repeat'..'until', 'try'..'finally', ...
To use it, define a key in Environment -> Editor Options -> Key Mappings.
2. 'Guess unclosed block'
Although the freepascal compiler has very good error messages, so that the error position most of time points to the error, there are cases, where the error position does not help. Most of the cases involves a missing 'begin' or 'end'. 'Guess unclosed block' tries to find these blocks. It searches for blocks, which start and end have different indenting.
For example, it will find:
begin
while do
end; // this end needs a begin
if expr then begin // begin needs an end
end;
To use it you can define a key or use Tools->Guess unclosed block.
'Guess unclosed block' will search the next unclosed block after the cursor.
Mattias
More information about the Lazarus
mailing list