In hopes of figuring the language-sensitive parser out, I've been trying to make a grammar for .ini files. It appears my incomprehension is stark, as I can't get any satisfaction out of the grammar
{ scopeName = 'text.ini'; fileTypes = ( 'ini' ); foldingStartMarker = '^['; foldingStopMarker = '.(?=^[)'; }
... which I think specifies a folding range from the opening [ of a section, running to the character before the [ that begins the next section. TextMate puts a fold marker next to the section line, but no matching marker at the bottom of the section. Clicking the fold button has no effect.
(Yes, the stop marker doesn't account for the end-of-file that closes the last section, but one challenge at a time.)
What am I missing?
-- F
On 14/8/2006, at 1:52, Fritz Anderson wrote:
... which I think specifies a folding range from the opening [ of a section, running to the character before the [ that begins the next section. TextMate puts a fold marker next to the section line, but no matching marker at the bottom of the section. Clicking the fold button has no effect. [...]
What am I missing?
Last in section 3.2:
A word of caution: the folding system is based on both having clear indent markers and having the fold start/stop markers use the same indent level. This means that folding based purely on indent or where the start/stop markers do not align, is currently not supported.