xcwen / ac-php

emacs auto-complete & company-mode for php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request: add support for @property-{read,write}

flaviovs opened this issue · comments

It seems a trivial change to the bundled phpctags. Around line 24725 of the phar file (untested):

                    if (preg_match(
-                       "/@property[ \t]+([a-zA-Z0-9_\\\\]+)[ \t]+\\$?([a-zA-Z0-9_]+)/",
+                       "/@property(?:-write|-read)?[ \t]+([a-zA-Z0-9_\\\\]+)[ \t]+\\$?([a-zA-Z0-9_]+)/",
                        $line_str,
                        $matches
                    ))

See @property, @property-read, @property-write

commented

ok