all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Simen Heggestøyl" <simenheg@gmail.com>
To: 19263@debbugs.gnu.org
Subject: bug#19263: 25.0.50; scss-mode: interpolated variable indentation
Date: Fri, 12 Dec 2014 21:18:53 +0100	[thread overview]
Message-ID: <1418415533.9295.0@smtp.gmail.com> (raw)
In-Reply-To: <1417632302.20176.0@smtp.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 883 bytes --]

The bug seems to be fixed by the following patch:

diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el
index 1759643..e94b11f 100644
--- a/lisp/textmodes/css-mode.el
+++ b/lisp/textmodes/css-mode.el
@@ -450,7 +450,7 @@
 (defun scss-smie--not-interpolation-p ()
   (save-excursion
     (forward-char -1)
-    (or (zerop (skip-chars-backward "[:alnum:]"))
+    (or (zerop (skip-chars-backward "-[:alnum:]"))
         (not (looking-back "#{\\$" (- (point) 3))))))

 ;;;###autoload (add-to-list 'auto-mode-alist '("\\.scss\\'" . 
scss-mode))

I wanted to add a test case for this as well, but I couldn't
understand how the indentation tests work. Are the files in
‘test/indent/’ supposed to exemplify correct indentation? In that
case, the indentation in ‘test/indent/scss-mode.scss’ seems to be
wrong given the default indent offset of 4.

[-- Attachment #2: Type: text/html, Size: 1164 bytes --]

  reply	other threads:[~2014-12-12 20:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-03 18:45 bug#19263: 25.0.50; scss-mode: interpolated variable indentation Simen Heggestøyl
2014-12-12 20:18 ` Simen Heggestøyl [this message]
2014-12-14  4:40   ` Stefan Monnier
2015-02-02 22:45     ` Simen Heggestøyl
2015-02-05 20:36       ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1418415533.9295.0@smtp.gmail.com \
    --to=simenheg@gmail.com \
    --cc=19263@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.