File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -983,8 +983,9 @@ this ^ lineup"
983
983
(defun php-heredoc-end-re (heredoc-start )
984
984
" Build a regular expression for the end of a heredoc started by the string HEREDOC-START."
985
985
; ; Extract just the identifier without <<< and quotes.
986
- (string-match " \\ _<.+?\\ _>" heredoc-start)
987
- (concat " ^\\ (" (match-string 0 heredoc-start) " \\ )\\ W" ))
986
+ (save-excursion
987
+ (string-match " \\ _<.+?\\ _>" heredoc-start)
988
+ (concat " ^\\ s-*\\ (" (match-string 0 heredoc-start) " \\ )\\ W" )))
988
989
989
990
(defun php-syntax-propertize-function (start end )
990
991
" Apply propertize rules from START to END."
Original file line number Diff line number Diff line change 31
31
$ g = <<<"いろは"
32
32
Let'go Justin
33
33
いろは ;
34
+
35
+ var_dump (<<<"ABC"
36
+ Let'go Justin
37
+ ABC );
38
+
39
+ if (1 === 1 ) {
40
+ var_dump (<<<"ABC"
41
+ Let'go Justin
42
+ ABC );
43
+ }
You can’t perform that action at this time.
0 commit comments