Skip to content

Commit 5383198

Browse files
committed
Set comment-start
1 parent e3aeebe commit 5383198

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

php-mode.el

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,15 @@ After setting the stylevars run hooks according to STYLENAME
10101010
(c-init-language-vars php-mode)
10111011
(c-common-init 'php-mode)
10121012

1013+
(setq-local comment-start "// ")
1014+
(setq-local comment-start-skip
1015+
(eval-when-compile
1016+
(rx (group (or (: "#")
1017+
(: "/" (+ "/"))
1018+
(: "/*")))
1019+
(* (syntax whitespace)))))
1020+
(setq-local comment-end "")
1021+
10131022
(setq-local font-lock-string-face 'php-string)
10141023
(setq-local font-lock-keyword-face 'php-keyword)
10151024
(setq-local font-lock-builtin-face 'php-builtin)

0 commit comments

Comments
 (0)