unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* 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

* bug#22841: [PATCH] Declare $ as an expression prefix in SCSS mode
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2016-02-29  6:04 UTC (permalink / raw)
  To: Simen Heggestøyl; +Cc: Stefan Monnier, 22841

Simen Heggestøyl <simenheg@gmail.com> writes:

> Variable names are prefixed by $ in SCSS. The following patch declares $
> as an expression prefix in SCSS mode.

Thanks; applied to the Emacs trunk.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[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 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).