[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #3134: add limit on function lines to sh highlight


http://gambaswiki.org/bugtracker/edit?object=BUG.3134&from=L21haW4-

Comment #4 by Bruce STEERS:

I have it working like this now...

function.function{Function}:
  limit
  from /[A-Za-z0-9_]+\(\)/ to /^}$/ with sh

It seems to work. only caveat is the function MUST end with a line only containing }

The only issue i have is that if using the 'from "{" to "}"' syntax for the limit the end line is shown like another limit (with a minus sign that does nothing) and it does not collapse with the rest of the area, it remains visible.

As you can see in the attached image.

If that can be fixed i think i could implement function folding in the editor for sh.
(with some better regex to make it more robust)

Respects

----------------------------------------------------------------------------

Attachment: Untitled.jpg



----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----