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.
On Jul 27, 2007, at 12:38 PM, Juan Falgueras wrote:
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.
The two lines must have the same indention level or they aren't even checked against the folding markers. It's a limitation of the current system. You don't have the start line on that pic but I'm guessing it is indented some?