Skip to content

Commit 736a697

Browse files
authored
Merge pull request #540 from takeokunn/feature/add-page-delimiter
Add page-delimiter custom variable.
2 parents d75517c + ed82c39 commit 736a697

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: php-mode.el

+7
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ of constants when set."
201201
:tag "PHP Mode Lineup Cascaded Calls"
202202
:type 'boolean)
203203

204+
(defcustom php-mode-page-delimiter
205+
(eval-when-compile (rx symbol-start (or "namespace" "function" "class" "trait" "interface") symbol-end))
206+
"Regexp describing line-beginnings that PHP declaration statements."
207+
:group 'php-mode
208+
:tag "PHP Mode Page Delimiter"
209+
:type 'regexp)
204210

205211
(define-obsolete-variable-alias 'php-extra-constants 'php-mode-extra-constants "1.20.0")
206212
(defcustom php-mode-extra-constants '()
@@ -1067,6 +1073,7 @@ After setting the stylevars run hooks according to STYLENAME
10671073
(: "/*")))
10681074
(* (syntax whitespace)))))
10691075
(setq-local comment-end "")
1076+
(setq-local page-delimiter php-mode-page-delimiter)
10701077

10711078
(setq-local font-lock-string-face 'php-string)
10721079
(setq-local font-lock-keyword-face 'php-keyword)

0 commit comments

Comments
 (0)