Skip to content

Commit 4a42c29

Browse files
committed
Add enum support to php-current-class
1 parent b9d7f07 commit 4a42c29

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ All notable changes of the PHP Mode 1.19.1 release series are documented in this
77
### Changed
88

99
* Add `readonly` class modifier to [Imenu] ([#802])
10+
* Add `enum` support to `php-current-class` ([#802])
1011

1112
[Imenu]: https://www.gnu.org/software/emacs/manual/html_node/emacs/Imenu.html
1213
[#802]: https://github.com/emacs-php/php-mode/pull/802

lisp/php.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ can be used to match against definitions for that classlike."
471471

472472
(defconst php--re-classlike-pattern
473473
(eval-when-compile
474-
(php-create-regexp-for-classlike (regexp-opt '("class" "interface" "trait")))))
474+
(php-create-regexp-for-classlike (regexp-opt '("class" "interface" "trait" "enum")))))
475475

476476
(defvar php--analysis-syntax-table
477477
(eval-when-compile

0 commit comments

Comments
 (0)