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