Skip to content

Commit 3367e28

Browse files
committed
Move definition php-beginning-of-defun-regexp to php.el
1 parent 2a83fd2 commit 3367e28

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

php-mode.el

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -734,10 +734,6 @@ but only if the setting is enabled"
734734
(interactive)
735735
(php-set-style "psr2"))
736736

737-
(defconst php-beginning-of-defun-regexp
738-
"^\\s-*\\(?:\\(?:abstract\\|final\\|private\\|protected\\|public\\|static\\)\\s-+\\)*function\\s-+&?\\(\\(?:\\sw\\|\\s_\\)+\\)\\s-*("
739-
"Regular expression for a PHP function.")
740-
741737
(defun php-beginning-of-defun (&optional arg)
742738
"Move to the beginning of the ARGth PHP function from point.
743739
Implements PHP version of `beginning-of-defun-function'."

php.el

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ it is the character that will terminate the string, or t if the string should be
159159
(and (boundp 'poly-php-html-mode)
160160
(symbol-value 'poly-php-html-mode)))
161161

162+
(defconst php-beginning-of-defun-regexp
163+
"^\\s-*\\(?:\\(?:abstract\\|final\\|private\\|protected\\|public\\|static\\)\\s-+\\)*function\\s-+&?\\(\\(?:\\sw\\|\\s_\\)+\\)\\s-*("
164+
"Regular expression for a PHP function.")
165+
162166
(defun php-create-regexp-for-method (visibility)
163167
"Make a regular expression for methods with the given VISIBILITY.
164168

0 commit comments

Comments
 (0)