/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: make_link.php,v 1.46 2003/06/30 05:08:36 arino Exp $
+// $Id: make_link.php,v 1.47 2003/06/30 05:57:19 arino Exp $
//
// ¥ê¥ó¥¯¤òÉղ乤ë
(\w+) # (2) plugin name
(?:
\(
- ((?:(?!\);).)*) # (3) parameter
+ ([^)]*) # (3) parameter
\)
)?
)
(?:
\{
- ((?:(?!};).)*) # (4) body
+ (.*) # (4) body
\}
)?
;
{
//&hoge(){...}; &fuga(){...}; ¤Îbody¤¬'...}; &fuga(){...'¤È¤Ê¤ë¤Î¤Ç¡¢Á°¸å¤Ëʬ¤±¤ë
$after = '';
- if (preg_match("/^ ((?!};).*?) }; (.*?) & ( (\w+) (?: \( ((?:(?!\);).)*) \) )? ) { (.+)$/x",$body,$matches))
+ if (preg_match("/^ ((?!};).*?) }; (.*?) & ( (\w+) (?: \( ([^()]*) \) )? ) { (.+)$/x",$body,$matches))
{
$body = $matches[1];
$after = $matches[2].$this->make_inline($matches[3],$matches[4],$matches[5],$matches[6]);