I am a grep newbie (never really needed it, i know, i am missing out
on all the fun ...), and I am trying to create a C# (mono) CLM
module. It all works fine, but I really want function name detection
and folding...
So i am trying to come up with a pattern that finds things like:
public override string ToString()
private virtual void Whatever(string abc)
or
public MyConstructor()
I have a couple of questions:
a) I could not find anything in the docs about how to best test a
named subpattern. i know how to test an unnamed numbered pattern, but
to make sure the P<function_name> pattern works, i would really like
to test it...
b) i know how to match the function line etc, but as my terminating
char for the Name is the opening paranthesis, what i want to do is:
find beginning of line, search for opening paranthesis, and now
create a subpattern by going backwards and match an identifier
name... How do i do that? Is that even possible?
c) If i don't use the CDATA trick, i need to html encode all special
chars inside the string? or just open/close <> ?
Oh, anyone else found documentation about this, beside the very brief
part of the manual (i downloaded the SDK, to my suprise there is
nothing on CLMs in there). And yes, i looked through Seth's excellent
tutorial.
Tia
Frank
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>