Posted 20 years ago
by Tim Davis
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?