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.
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.
They're just regexps, so you'd typically use: foldingStartMarker = 'first block definition|second block definition'; foldingStopMarker = 'first block definition|second block definition'; :-)
HTH, Martin
great, thanks!
On 25.02.2012, at 15:02, Martin Kühl wrote:
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.
They're just regexps, so you'd typically use: foldingStartMarker = 'first block definition|second block definition'; foldingStopMarker = 'first block definition|second block definition'; :-)
HTH, Martin
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate