eranif / codelite

A multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++
https://codelite.org
GNU General Public License v2.0
2.08k stars 444 forks source link

PHPParser: Handle PHP Attributes #3392

Closed AJenbo closed 1 month ago

AJenbo commented 1 month ago

Fixes #3388

This adds very basic parsing of PHP Attributes. Nothing about the content of the attribute is understood or retained, this is just enough to not encounter a parser errors for files that contain non-backwards compatible attributes.

In the long run we will probably need something like PHPDocComment.cpp for parsing the content. Though I'm not sure if that is the right way to go since the format is a lot more formal then PHPDoc.