branch: elpa/swift-mode commit e90cf5e5ecab240748cc8db0986b627211881949 Author: Chris Barrett <chris.d.barr...@me.com> Commit: Chris Barrett <chris.d.barr...@me.com>
Set comment vars --- swift-mode.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/swift-mode.el b/swift-mode.el index a3db23f..69a9fdf 100644 --- a/swift-mode.el +++ b/swift-mode.el @@ -151,9 +151,11 @@ \\<swift-mode-map>" :group 'swift (setq-local font-lock-defaults swift-mode--font-lock-defaults) - (setq-local comment-start "//") + (setq-local comment-start "// ") + (setq-local comment-end "") (setq-local tab-width 4) (setq-local indent-tabs-mode nil) + (setq-local comment-start-skip (rx "//" (* "/") (* space))) ) (provide 'swift-mode)