Skip to content

Commit 5ee9af5

Browse files
committed
Do not set the comment termination property if there is a # on the last line
1 parent 828d2c1 commit 5ee9af5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

php-mode.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,8 @@ this ^ lineup"
10211021
(not (php-in-string-or-comment-p))
10221022
(not (looking-at "[[]")))
10231023
(c-put-char-property (1- (point)) 'syntax-table (string-to-syntax "<"))
1024-
(c-put-char-property line-end 'syntax-table (string-to-syntax ">")))
1024+
(unless (eq line-end (point-max))
1025+
(c-put-char-property line-end 'syntax-table (string-to-syntax ">"))))
10251026
(move-beginning-of-line 2)
10261027
(setq in-last-line (>= line-end (point)))))))
10271028

0 commit comments

Comments
 (0)