[TxMt] language definition - multiple folding marker possible?

Martin Batholdy batholdy at googlemail.com
Sat Feb 25 12:40:52 UTC 2012


Hi,

I would like to have more than one pattern which will be recognized for folding blocks in a language definition.
Is this possible?


for example, I have this regular expression in a language definition for one bundle:

foldingStartMarker = '^[^#]*(\([^\)]*$|\{\s*$)';
foldingStopMarker = '(^\s*\)|^\s*\})';


can I add a pattern, so that I have multiple markers that signal a block?

I tried;


foldingStartMarker = ('first block definition', 'second block definition');
foldingStopMarker = ('first block definition', 'second block definition');


but that doesn't seem to work.







More information about the textmate mailing list