Neil Hodgson wrote:
Oops, indeed, I missed this part!
Now, since SQL is a free flowing language, ie. with no mandatory
indentation, I am not sure this code is very useful, beyond enforcing
good presentation practice.
Having indentation based folding is OK as a fallback when you can't
do good keyword based folding. If good keyword based folding can be
achieved for SQL, it should take over.
Of course, and I saw now some complex, indented SQL requests, that could
indeed use some folding.... :-)
I will restore this code.
Currently, I fold stream comments, artificial fold points marked by
--{ or -- { for MySQL
--} or -- }
and keywords (except 'if', deactivated because it can be found without
matching end).
I would think "if" is one of the most important folding keywords.
Well, it is mostly a fast and bad hack to workaround the problem. We
could use something like Carsten's patch, if that's the only case where
an 'if' is used without an 'end'. Or I thought to end the if when
meeting a semi-colon, although they may be optional in some dialects.
I will come back to this lexer later.
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest