Skip to content

Commit 92fd11a

Browse files
committed
The # following [] is not a comment and is excluded from comment-start-skip
1 parent 6c15f8e commit 92fd11a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ After setting the stylevars run hooks according to STYLENAME
11831183
(setq-local comment-start "// ")
11841184
(setq-local comment-start-skip
11851185
(eval-when-compile
1186-
(rx (group (or (: "#")
1186+
(rx (group (or (: "#" (not (any "[")))
11871187
(: "/" (+ "/"))
11881188
(: "/*")))
11891189
(* (syntax whitespace)))))

0 commit comments

Comments
 (0)