Rewrite the PHP parser as a non-regex parser
Rewrite the PHP parser as a real parser, not using regexes. This is more complex but allows for better parsing. Visible changes: * Scope reporting; * Variables inside functions are no longer reported (this is a deliberate choice, but can be easily changed); * Only the PHP part is parsed (e.g. it doesn't report JavaScript functions anymore); * Function arguments spanning several lines are properly reported; * Interfaces are not yet parsed. Otherwise the new parser should behave like the old one, at least where it used to be right. Parsing of more constructs and reporting more details is planned.
This commit is contained in:
parent
d453fe33fe
commit
be07870e97
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user