branch: elpa/drupal-mode
commit 043644e85dd596778b615f8fd3a9ce0c048c779d
Author: Arne Jørgensen <[email protected]>
Commit: Arne Jørgensen <[email protected]>
Set correct comment style for inline comments.
---
drupal-mode.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drupal-mode.el b/drupal-mode.el
index 372f63ab75..c061ffa8af 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -253,6 +253,11 @@ function arguments.")
#'drupal-eldoc-documentation-function)
(eldoc-mode 1))
+ ;; Set correct comment style for inline comments.
+ (setq comment-start "//")
+ (setq comment-padding " ")
+ (setq comment-end "")
+
;; Setup cc-mode style stuff.
(when (derived-mode-p 'c-mode)
(c-add-language 'drupal-mode 'c-mode)