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 = '[^#]*$'; }, ); }
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.