branch: elpa/kotlin-mode
commit 70d36a45c98d979c85e80a4b8fc1b6d7fd1556a6
Author: Dr. ERDI Gergo <[email protected]>
Commit: Dr. ERDI Gergo <[email protected]>

    Add comment syntax
---
 kotlin-mode.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/kotlin-mode.el b/kotlin-mode.el
index d9d6fc7ae5..d4c4325c78 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -220,6 +220,10 @@
 
   (setq-local font-lock-defaults '((kotlin-mode-font-lock-keywords) nil nil))
   (setq-local syntax-propertize-function 
#'kotlin-mode--syntax-propertize-function)
+  (set (make-local-variable 'comment-start) "//")
+  (set (make-local-variable 'comment-padding) 1)
+  (set (make-local-variable 'comment-start-skip) "\\(//+\\|/\\*+\\)\\s *")
+  (set (make-local-variable 'comment-end) "")
 
   :group 'kotlin
   :syntax-table kotlin-mode-syntax-table)

Reply via email to