On Thu, Sep 01, 2011 at 09:11:15AM -0700, Robert M. Münch wrote:
> Hi, I try to create a code less language module for Rebol. So far so
> good. But I'm struggling to get the "Function Pattern" stuff to work.
> This is the pattern I currently use:
> 
> <string>(?x: (?P<function> (?P<function_name>[A-Za-z]+)*\:.*func).*\
> [))</string>

It appears that you have three left parens and four right parens.

That first asterisk also looks suspicious to me.  Should there be a period
before it or something?


> What is this "(?x:" stuff about? Is this "Turn on free-spacing mode to
> ignore whitespace between regex tokens, and allow # comments."? But
> than I'm wondering about the : in there.

Yes, that is what the x means.  The colon just marks the end of the flags.


> If I just use <string>(?x:)</string> the module loads but of course
> this doesn't make sense. If I add now <string>(?x: (?
> P<function_name>.*))</string> it won't work. A simple example how to
> do this with ?P<function> and ?P<function_name> would help a lot.

I haven't actually used codeless language modules so I can't offer any
examples.

Ronald

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to