[Geany] Pascal code folding
spir ☣
denis.spir at xxxxx
Mon Apr 19 16:00:58 UTC 2010
Hello,
In Pascal mode; folding seems to only wrap parts between begin...end. This imo does not match the needs since in Pascal a var section forms a logical block; and in pascal like any other PL a whole function def indeed form a code block, while only a part of it is enclosed in begin...end.
Examples:
// seems unfoldable
var
number, min, max : Integer;
sum : Integer;
average : Real;
numbers : Array [1..number_count] of Integer = (1,2,3,5);
// only the begin..end parts seem foldable
function getSum(numbers:Array of Integer; count:Integer) : Integer;
var
i : Integer;
begin
result := 0;
for i:=1 to count do begin
result := result + numbers[i];
end;
end;
Also, is there a way to get func names highlighted? (and class names in object pascal)
Tried to use the keys defname funcname functionname but no way ;-)
Denis
________________________________
vit esse estrany ☣
spir.wikidot.com
More information about the Users
mailing list