[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 #2 by Bruce STEERS:

Aah , not so simple then :(

I finally have it working like this...
line 30 sh.highlight

expansion{Expansion}:
  match /\$[A-Za-z0-9_]+/
  limit
  keyword function
  limit
  from /\s*\(\)/

with that it's working for all function lines in my bash script with a mixture of all 3 mentioned function methods
the only issue is anything like a comment after the function name highlights.

see attached image. the limit/expand marks are all correct. just a bit of highlighting mess.

do you think it is bad/unreliable?

Respects

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

Attachment: Untitled.jpg



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