We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df1e864 commit 3dcf800Copy full SHA for 3dcf800
lisp/php-mode.el
@@ -909,9 +909,9 @@ This is was done due to the problem reported here:
909
(unless (php-in-string-or-comment-p)
910
(or
911
;; Detect PHP8 attribute: <<Attribute()>>
912
- (when (and (< 2 pos) (< 2 (- pos (c-point 'bol))))
913
- (backward-char 2)
914
- (looking-at-p ">>\\s-*\\(?:<<\\|$\\)"))
+ (when (and (< 1 pos) (< 1 (- pos (c-point 'bol))))
+ (backward-char 1)
+ (looking-at-p (eval-when-compile (rx "]" (* (syntax whitespace)) (or "#[" line-end)))))
915
;; Detect HTML/XML tag and PHP tag (<?php, <?=, ?>)
916
(when php-mode-template-compatibility
917
(beginning-of-line)
0 commit comments