php-peg icon indicating copy to clipboard operation
php-peg copied to clipboard

Rule names sometimes don't work

Open ksmolyanin opened this issue 14 years ago • 0 comments

This doesn't match: static: (static_content:( / [^\{] / | "{" !("{" | "*") )+ | comment)+ function static_content (&$res, $sub) { $res['content'][0] = "'"; $res['content'][1] .= $sub['text']; } but this (which is logically the same) works ok: static_content: ( / [^\{] / | "{" !("{" | "*") )+ static: (static_content | comment)+ function static_content (&$res, $sub) { $res['content'][0] = "'"; $res['content'][1] .= $sub['text']; }

ksmolyanin avatar Jul 28 '11 10:07 ksmolyanin