|
Posted by elmosik on 10/14/74 12:00
On 17 Sty, 13:29, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
> Regular expressions simply do not cut it. Consider the following comments
> which will not be caught by your regular expressions:
>
> define('SOME_CONFIG_OPTION', TRUE); # Here is a comment
> define('SOME_OTHER_OPTION', TRUE); // Here is a comment
>
define('SOME_CONFIG_OPTION', TRUE); # class foo() { function bar(){} }
class MyClass extends XXX
{
/* some comment */ function foo() {}
}
.... works correctly in above cases.
Comment after define() is ignored so function bar() is not listed in
results same like with '//'.
Comment before foo() method in class is listed in results.
Everything works fine for me, remember that isn't a universal parser I
need it only working for my specified schema.
--
Thanks
Navigation:
[Reply to this message]
|