emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/kotlin-mode 70d36a45c9 051/162: Add comment syntax


From: ELPA Syncer
Subject: [nongnu] elpa/kotlin-mode 70d36a45c9 051/162: Add comment syntax
Date: Sat, 29 Jan 2022 08:25:21 -0500 (EST)

branch: elpa/kotlin-mode
commit 70d36a45c98d979c85e80a4b8fc1b6d7fd1556a6
Author: Dr. ERDI Gergo <gergo@erdi.hu>
Commit: Dr. ERDI Gergo <gergo@erdi.hu>

    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

[Prev in Thread] Current Thread [Next in Thread]