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> When I use this, the CLM is not recognized by BBedit, which means, there is an error in it. I read other modules, PCRE tutorials etc. but I'm stucked. So, some questions: 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. 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. -- 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>
