branch: elpa/php-mode commit 4a42c293d7644bf1129d6327c5d3d2de721b45bc Author: USAMI Kenta <tad...@zonu.me> Commit: USAMI Kenta <tad...@zonu.me>
Add `enum` support to `php-current-class` --- CHANGELOG.md | 1 + lisp/php.el | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61154bc30e..feb711f9ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes of the PHP Mode 1.19.1 release series are documented in this ### Changed * Add `readonly` class modifier to [Imenu] ([#802]) + * Add `enum` support to `php-current-class` ([#802]) [Imenu]: https://www.gnu.org/software/emacs/manual/html_node/emacs/Imenu.html [#802]: https://github.com/emacs-php/php-mode/pull/802 diff --git a/lisp/php.el b/lisp/php.el index c3491fa9b5..6a2f40f8f3 100644 --- a/lisp/php.el +++ b/lisp/php.el @@ -471,7 +471,7 @@ can be used to match against definitions for that classlike." (defconst php--re-classlike-pattern (eval-when-compile - (php-create-regexp-for-classlike (regexp-opt '("class" "interface" "trait"))))) + (php-create-regexp-for-classlike (regexp-opt '("class" "interface" "trait" "enum"))))) (defvar php--analysis-syntax-table (eval-when-compile