[TxMt] folding issue with loop ... end loop (vhdl bundle)

Peter Vohmann pvohmann at mac.com
Mon Aug 15 13:12:23 UTC 2005


On 15.08.2005 14:50, Jeroen van der Ham wrote:

> On 15-08-2005 14:22, Peter Vohmann wrote:
>
>> Any reasonable ideas how to write a foldingStartMarker pattern
>> that will _not_ trigger on the final line?
>>
>
> Sure:
>     foldingStartMarker = "(?i:(^\\s*loop|case|if))";

...rrriiighht. Doing a match from the start of the line also helps to  
avoid if's in --commented lines, thanks a lot.

My final solution looks something like this, which will also allow a  
"Label:" before the statement:

     foldingStartMarker = "(?i:^\\s*(\w+:)?((entity|architecture| 
configuration|component|package|process|function|procedure|case|if| 
for|while|loop)\\b))";
     foldingStopMarker = "(?i:^\\s*(end)\\b)";

Thanks for the help, I surely wasted enough time on syntax  
highlighting already... ;-)

Peter




More information about the textmate mailing list