Hello,
I have been playing with the existing Erlang bundle to improve it a bit and I have trouble adding code folding.
Here is a simple Erlang function: start(Var) -> test(Var), %% Comment ok.
The last dot marks the end of the function. I know that the end of the function is not at the same indent level that the start marker, but this is always the case in Erlang. I try to match the end marker, with any number of spaces / tabs at the beginning of the line but at best, start and stop marks are put in place but not foldable. I suppose this is because Textmate does some checks on the number of spaces or tabs but is there a way to ignore this match ?
If not, is there an estimated release date for this feature ?
Thank you !
Mickael Remond wrote:
Hello,
I have been playing with the existing Erlang bundle to improve it a bit and I have trouble adding code folding.
The last dot marks the end of the function. I know that the end of the function is not at the same indent level that the start marker, but this is always the case in Erlang.
In this case there's nothing you can currently do to get the folding to work correctly other than making the end pattern include whitespace-only lines as the python bundle does.
But this is a known problem (i.e. *lots* of languages have the same types of indentation), and I think that in TM 2.0, allan will try to make foldings more based on scope, instead of these folding patterns. So your problem may be solved in a several months. :)
-Jacob
Hello Jacob,
* Jacob Rus jrus@hcs.harvard.edu [2006-10-21 12:29:31 -0400]:
But this is a known problem (i.e. *lots* of languages have the same types of indentation), and I think that in TM 2.0, allan will try to make foldings more based on scope, instead of these folding patterns. So your problem may be solved in a several months. :)
Thank you for your answer. I will wait for the 2.0 version before trying to add this feature. Thank you !