Posted 19 years ago
by Tim Davis
![Avatar](https://secure.gravatar.com/avatar/f1c4b0af5016e93075015c10eaba215b.jpg?s=64&d=identicon&r=g)
I'm trying to differentiate, for purposes of outlining, two sets of strings..
Meaning,
I have a child state called function state.
It starts folding on a line begining with function ie ^funtion
and stops folding on a line beginning with end; ie ^end;
My problem is when I need to do an external function prototype
ie. function blah(blah, blah);
It is trying to fold starting at that function, I need to somehow tell the FunctionStartNode to only fold on lines that begin with function and do not end with a ";".
I've tried everything from ^function$[^;] to looking ahead for [^;]...
How can I do this?
Meaning,
I have a child state called function state.
It starts folding on a line begining with function ie ^funtion
and stops folding on a line beginning with end; ie ^end;
My problem is when I need to do an external function prototype
ie. function blah(blah, blah);
It is trying to fold starting at that function, I need to somehow tell the FunctionStartNode to only fold on lines that begin with function and do not end with a ";".
I've tried everything from ^function$[^;] to looking ahead for [^;]...
How can I do this?