I would like to display the #mystuff part with css, which imposes-me to match a region starting by :css and ending at the next same-or-less indentation level.I have tried stuff like begin: "(\s+):css" and end: "\1[^\s]", but it has numerous problems : it won't detect a sudden de-indent and the first letter of the next line is eaten by the matcher, preventing @div from being matched.

How can I achieve that ?

Last edited by Pwipwi on Tue Feb 07, 2012 4:12 pm, edited 1 time in total.

Ah, cool stuff Thank god for lookaheads huh? Just been having some grammar "fun" myself.

I need to clean up/test some grammars for a package I'm working on and it's a royal PITA trying to read/write the xml with the dillion rules. So as one does, I thought to myself, why not a folding navigator for python source? haha

I'm thinking of something similar for firebug css integration. I was never really sold on the idea of folding but I'm glad Jon added it.

It is better to remain silent and be thought a fool, than to speak out and remove all doubt