Skip to content

Commit 4b9c37d

Browse files
committed
Impl php-in-poly-php-html-mode function
1 parent f1938b9 commit 4b9c37d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

php.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ it is the character that will terminate the string, or t if the string should be
108108
"Return character address of start of comment or string; nil if not in one."
109109
(nth 8 (syntax-ppss)))
110110

111+
(defsubst php-in-poly-php-html-mode ()
112+
"Return T if current buffer is in `poly-html-mode'."
113+
(and (boundp 'poly-php-html-mode)
114+
(symbol-value 'poly-php-html-mode)))
115+
111116
(defun php-create-regexp-for-method (visibility)
112117
"Make a regular expression for methods with the given VISIBILITY.
113118

0 commit comments

Comments
 (0)