File tree 1 file changed +12
-14
lines changed
1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -906,19 +906,18 @@ This is was done due to the problem reported here:
906
906
(if pos
907
907
(goto-char pos)
908
908
(setq pos (point )))
909
- (unless (php-in-string-or-comment-p)
910
- (or
911
- ; ; Detect PHP8 attribute: <<Attribute()>>
912
- (when (and (< 1 pos) (< 1 (- pos (c-point 'bol ))))
913
- (backward-char 1 )
914
- (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 )
918
- (looking-at-p
919
- (eval-when-compile
920
- (rx (or (: bol (0+ space) " <" (in " a-z\\ ?" ))
921
- (: (0+ not-newline) (in " a-z\\ ?" ) " >" (0+ space) eol))))))))))
909
+ (cond
910
+ ; ; Detect PHP8 attribute: #[Attribute()]
911
+ ((and (< 1 pos) (< 1 (- pos (c-point 'bol ))))
912
+ (backward-char 1 )
913
+ (looking-at-p (eval-when-compile (rx " ]" (* (syntax whitespace)) (or " #[" line-end)))))
914
+ ; ; Detect HTML/XML tag and PHP tag (<?php, <?=, ?>)
915
+ (php-mode-template-compatibility
916
+ (beginning-of-line )
917
+ (looking-at-p
918
+ (eval-when-compile
919
+ (rx (or (: bol (0+ space) " <" (in " ?a-z" ))
920
+ (: (0+ not-newline) (in " ?a-z" ) " >" (0+ space) eol)))))))))
922
921
923
922
(defun php-c-vsemi-status-unknown-p ()
924
923
" Always return NIL. See `c-vsemi-status-unknown-p' ."
@@ -1516,7 +1515,6 @@ The output will appear in the buffer *PHP*."
1516
1515
'php-mode
1517
1516
`((php-string-intepolated-variable-font-lock-find))
1518
1517
'append )))
1519
-
1520
1518
1521
1519
1522
1520
; ;; Correct the behavior of `delete-indentation' by modifying the
You can’t perform that action at this time.
0 commit comments