From: "Simen Heggestøyl" <simenheg@gmail.com>
To: 22841@debbugs.gnu.org
Cc: Stefan Monnier <monnier@IRO.UMontreal.CA>
Subject: bug#22841: [PATCH] Declare $ as an expression prefix in SCSS mode
Date: Sun, 28 Feb 2016 20:56:43 +0100 [thread overview]
Message-ID: <87vb58vcas.fsf@gmail.com> (raw)
Variable names are prefixed by $ in SCSS. The following patch declares $
as an expression prefix in SCSS mode.
From 61b4e502dd52dcbfeb529b4d042b210708c22c8e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simen=20Heggest=C3=B8yl?= <simenheg@gmail.com>
Date: Tue, 23 Feb 2016 22:02:13 +0100
Subject: [PATCH] Declare $ as an expression prefix in SCSS mode
* lisp/textmodes/css-mode.el (scss-mode-syntax-table): Declare $ as an
expression prefix.
---
lisp/textmodes/css-mode.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el
index 4064374..93a8dce 100644
--- a/lisp/textmodes/css-mode.el
+++ b/lisp/textmodes/css-mode.el
@@ -547,6 +547,8 @@ scss-mode-syntax-table
(let ((st (make-syntax-table css-mode-syntax-table)))
(modify-syntax-entry ?/ ". 124" st)
(modify-syntax-entry ?\n ">" st)
+ ;; Variable names are prefixed by $.
+ (modify-syntax-entry ?$ "'" st)
st))
(defvar scss-font-lock-keywords
--
2.7.0
next reply other threads:[~2016-02-28 19:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-28 19:56 Simen Heggestøyl [this message]
2016-02-29 6:04 ` bug#22841: [PATCH] Declare $ as an expression prefix in SCSS mode Lars Ingebrigtsen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vb58vcas.fsf@gmail.com \
--to=simenheg@gmail.com \
--cc=22841@debbugs.gnu.org \
--cc=monnier@IRO.UMontreal.CA \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).