[TxMt] A simple grammar problem

Juan Falgueras jfalgueras at uma.es
Fri Jul 27 17:38:56 UTC 2007


	I am trying to experiment with grammars (they have many dark points  
for me), and I have make this simple grammar that does perfectly well  
all but the "foldingStopMarker"

{	scopeName = 'source.vaughan';
	firstLineMatch = '^Vaughan)';
	foldingStartMarker = '^\s*Libro';
	foldingStopMarker = '^#$';
	patterns = (
		{	name = 'keyword.other.english';
			match = '^.+#';
		},
		{	name = 'keyword.other.spanish';
			match = '[^#]*$';
		},
	);
}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.png
Type: image/png
Size: 9332 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070727/770ddf04/attachment.png>
-------------- next part --------------

I have tried many forms of closing the folding, yet the C {} pairs  
but it never works for closing in my grammar.  Observe that the # is  
not considered any other pattern, but it does not work as stop marker  
in any way.


   -- Thanks for your help

  - Juan F.




More information about the textmate mailing list