File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -984,7 +984,7 @@ this ^ lineup"
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
986
(string-match " \\ _<.+?\\ _>" heredoc-start)
987
- (concat " ^\\ (" (match-string 0 heredoc-start) " \\ )\\ W" ))
987
+ (concat " ^\\ s-* \\ (" (match-string 0 heredoc-start) " \\ )\\ W" ))
988
988
989
989
(defun php-syntax-propertize-function (start end )
990
990
" 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
+ }
Original file line number Diff line number Diff line change 39
39
(" g" . php-variable-name)
40
40
(" = " )
41
41
(" <<<\" いろは\"\n Let'go Justin\n いろは" . php-string)
42
- (" ;\n " ))
42
+ (" ;\n\n var_dump(" )
43
+ (" <<<\" ABC\"\n Let'go Justin\n ABC" . php-string)
44
+ (" );\n\n " )
45
+ (" if" . php-keyword)
46
+ (" (1 === 1) {\n var_dump(" )
47
+ (" <<<\" ABC\"\n Let'go Justin\n ABC" . php-string)
48
+ (" );\n }\n " )
49
+ )
You can’t perform that action at this time.
0 commit comments