* bug#22841: [PATCH] Declare $ as an expression prefix in SCSS mode
@ 2016-02-28 19:56 Simen Heggestøyl
2016-02-29 6:04 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Simen Heggestøyl @ 2016-02-28 19:56 UTC (permalink / raw
To: 22841; +Cc: Stefan Monnier
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-29 6:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-28 19:56 bug#22841: [PATCH] Declare $ as an expression prefix in SCSS mode Simen Heggestøyl
2016-02-29 6:04 ` Lars Ingebrigtsen
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.