Skip to content

Commit 489dcb9

Browse files
committed
Modify php-beginning-of-defun-regexp pattern for capturing name
1 parent 88316f7 commit 489dcb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ it is the character that will terminate the string, or t if the string should be
160160
(symbol-value 'poly-php-html-mode)))
161161

162162
(defconst php-beginning-of-defun-regexp
163-
"^\\s-*\\(?:\\(?:abstract\\|final\\|private\\|protected\\|public\\|static\\)\\s-+\\)*function\\s-+&?\\(\\(?:\\sw\\|\\s_\\)+\\)\\s-*("
163+
"^\\s-*\\(?:\\(?:abstract\\|final\\|private\\|protected\\|public\\|static\\)\\s-+\\)*function\\s-+&?\\(\\(\\sw\\|\\s_\\)+\\)\\s-*("
164164
"Regular expression for a PHP function.")
165165

166166
(eval-when-compile

0 commit comments

Comments
 (0)