There are, however, some cases which make the folding of functions or if-clases fail.
Problem 1: ST2 does not recognize a folding element.
Problem 1: ST2 does not fold the whole code of a loop/if/for but is 'interrupted' by a comment line (or maybe because of intention)
Both problems are illustrated in the attached screenshots. Is that a general problem or related to the language definition (in this case, it's R)?
Thanks!