branch: elpa/zig-mode
commit e659a58b3ec970f8f52b8aa1b353c9cdd5dc17e8
Author: Matthew D. Steele <mdste...@alum.mit.edu>
Commit: GitHub <nore...@github.com>

    Set comment-start and comment-end (for issue #5) (#7)
---
 zig-mode.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/zig-mode.el b/zig-mode.el
index 2b63514..9172fbc 100644
--- a/zig-mode.el
+++ b/zig-mode.el
@@ -143,6 +143,8 @@
   "A major mode for the zig programming language."
   (set (make-local-variable 'c-basic-offset) 4)
   (set (make-local-variable 'c-syntactic-indentation) nil)
+  (setq-local comment-start "// ")
+  (setq-local comment-end "")
   (setq font-lock-defaults '(zig-font-lock-keywords)))
 
 ;;;###autoload

Reply via email to