textmate / r.tmbundle

TextMate support for R
25 stars 9 forks source link

Code folding is not recognized when a function argument definition spans more than one line #7

Closed eejd closed 11 years ago

eejd commented 11 years ago

If you have a function definition that spans more than one line, the parser is not detecting the brace pair for code folding:

f <- function( a=a, b=b) {
 # body
}

is detected and will fold, but

f <- function ( a=a,
                     b=b) {
 # body
}

is not.

sorbits commented 11 years ago

This is a limitation with TextMate’s folding system described at: http://manual.macromates.com/en/navigation_overview#customizing_foldings

Basically fold start/stop markers must use the same indent.