emacs-php / php-ts-mode

A Tree-sitter based major mode for editing PHP codes
GNU General Public License v3.0
17 stars 8 forks source link

rework imenu and add consult imenu support #62

Open piotrkwiecinski opened 5 months ago

piotrkwiecinski commented 5 months ago

This is the first draft of imenu rework.

Method, properties and constant declaration needs extra parsing.

Properties declaration show in imenu entire row with semicolon:

protected $loggerType = Logger::DEBUG;

imenu

Methods include new line for some reason. imenu2

I'll attempt to fix these in follow up PRs.

https://github.com/emacs-php/php-ts-mode/issues/34