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

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

[nongnu] elpa/sass-mode 0c54866 16/31: Make comments toggleable with M-;


From: ELPA Syncer
Subject: [nongnu] elpa/sass-mode 0c54866 16/31: Make comments toggleable with M-;
Date: Sun, 29 Aug 2021 11:29:39 -0400 (EDT)

branch: elpa/sass-mode
commit 0c54866a98e908e91021a0a6a09062f25ea8bfc5
Author: chee rabbits <chee@snaek.org>
Commit: chee <chee@snaek.org>

    Make comments toggleable with M-;
    
    Huzzah, now we can use `(comment-or-uncomment-region)`  to *toggle* our 
comments in sass-mode
---
 sass-mode.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sass-mode.el b/sass-mode.el
index e5bb277..a228e7f 100644
--- a/sass-mode.el
+++ b/sass-mode.el
@@ -198,6 +198,7 @@ LIMIT is the limit of the search."
         '(font-lock-extend-region-wholelines 
font-lock-extend-region-multiline))
   (set (make-local-variable 'font-lock-multiline) nil)
   (set (make-local-variable 'comment-start) "/*")
+  (set (make-local-variable 'comment-start-skip) "/[/*]\s*")
   (set (make-local-variable 'haml-indent-function) 'sass-indent-p)
   (set (make-local-variable 'haml-indent-offset) sass-indent-offset)
   (setq font-lock-defaults '(sass-font-lock-keywords t t)))



reply via email to

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