Alex wrote:
there is a folding error when folding SQL sources, or something wrong in the propertie fiels: Foldingmark at an IF folds till the end of the source fild and not to the end of the IF. (Regardless if an ELSE is used in the IF statement)

After looking at the source for the SQL lexer, I can see why this would happen - mostly because there isn't a real standard on terminating the IF block. Some versions use END IF, some do not.

Anyway, the foldlevel is incremented on the IF itself and on a BEGIN if one is used... an END (presumably matching a BEGIN) will decrement. An END IF will also terminate an IF block (decrementing the fold level), but if there *is* no END IF, the fold will never finish.

Finally, there is support for a fold.sql.only.begin property that causes the lexer to NOT open a fold for IF or LOOP statements (set it to 1 to enable this feature).

Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to