From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Dunn Newsgroups: gmane.emacs.devel Subject: Re: SCSS parser ideas Date: Tue, 05 Apr 2016 14:05:55 -0700 Message-ID: References: <20160405165154.72ba85b9@ThinkPax> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1459890388 16458 80.91.229.3 (5 Apr 2016 21:06:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Apr 2016 21:06:28 +0000 (UTC) To: Etienne Prud'homme , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 05 23:06:18 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1anYB0-0004lS-3O for ged-emacs-devel@m.gmane.org; Tue, 05 Apr 2016 23:06:18 +0200 Original-Received: from localhost ([::1]:39302 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anYAz-0005XK-Fe for ged-emacs-devel@m.gmane.org; Tue, 05 Apr 2016 17:06:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anYAj-0005XC-Ok for emacs-devel@gnu.org; Tue, 05 Apr 2016 17:06:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anYAf-00058n-L2 for emacs-devel@gnu.org; Tue, 05 Apr 2016 17:06:01 -0400 Original-Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]:36848) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anYAf-00058M-DJ for emacs-devel@gnu.org; Tue, 05 Apr 2016 17:05:57 -0400 Original-Received: by mail-pa0-x22d.google.com with SMTP id bx7so1788134pad.3 for ; Tue, 05 Apr 2016 14:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-transfer-encoding; bh=VhBYXPNkTKYHf+O61sdniflGE773igdGLIc/TYDdc7E=; b=VBOunF6mkcpezAxT0ix+JRi95BT5guEj2ketl3p8SdcVJrIgneRczo679Xm7E6VDaK ZHepReuLOzIGIxvF7qnwKKE/tDPckXB8FvGqhJuFmy+egTLcyWLJeyK+J4bslYLwanxk ctYXcICsnZBaoMdJVIKcsNrshZ3O4L+C0RUdO+xLdgBwMgZeUehTEGgKcBtjxOe6suKa j4Uk/7M3731Z0mUqAyJeU2lbgIKdPSxRdbbAlsXGfBoLkuTHu1xOs7peXwoDBLb2w4C7 NPcdW8F6feAqRCBe0m0Tm6XDhNGek1shN8MNWrusuMZRzL0nftUGOokJVpFt2qH1GlxH Z7eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=VhBYXPNkTKYHf+O61sdniflGE773igdGLIc/TYDdc7E=; b=BaeuPeaRoqzYJ1JbxxqIQvK753/p9nGnY/LxTUT9E4G61p3xawouPgZXuSvrYMGu6/ 6vz32LONqDt60H2Lav+E79cYjp95vmrSPGvO54JDJ2ZsqWC+H+FUjE/DiPrSkpwTsWD2 CAq0uu1e9LhPKekBMvCfBA1bRxV9mSimO/KKmSmiOjYJg+uIpXINfdoB4PtztrcM/zon T3vFrYgMXYEygua4ZdV6E5Jo0OgvXQFjGxs6TNITBv7S+fG99+JJlmH4fkdZsSFz32Cd E6Uu1pbEyofhAlHifnwzatgUyEAXpdKDYOcRWh+gomfWICY5PAmbB5pgIssabRX1op87 D1cA== X-Gm-Message-State: AD7BkJKD9/rogHmt8TNTbTdPkfa07gWB+TiJ/3Xf8LY+KnvM7Ded6cAZQhJDIg90fgPa2A== X-Received: by 10.66.54.78 with SMTP id h14mr65161289pap.95.1459890356414; Tue, 05 Apr 2016 14:05:56 -0700 (PDT) Original-Received: from localhost ([98.108.240.213]) by smtp.gmail.com with ESMTPSA id h85sm48908413pfj.52.2016.04.05.14.05.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Apr 2016 14:05:55 -0700 (PDT) In-Reply-To: <20160405165154.72ba85b9@ThinkPax> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/25.0.92.1 (x86_64-apple-darwin15.4.0) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:202755 Archived-At: I think better built-in support for SCSS would be very welcome, especially since development of both the scss-mode (https://github.com/antonj/scss-mode) and sass-mode (https://github.com/nex3/sass-mode) external packages seems to have ceased. Etienne Prud'homme writes: > Since I study in the field of Front-End web development, I find it sad > that Emacs lacks features that would otherwise be included in other > text-editors. > > One feature that is lacking is discovering SCSS variable values. I=E2=80= =99m > thinking something like Eldoc is doing for function declarations in C > or Emacs lisp. > > Given that SCSS is a Preprocessor, it=E2=80=99s possible to evaluate a va= riable > by simply parsing a file. Unless a file changes, a variable will always > stay the same. > > I made a basic prototype parser in elisp that did a hash map of all > variable declarations from a buffer. However, I don=E2=80=99t think it=E2= =80=99s > suitable in the long-term. > > Since I=E2=80=99ve got no experience in grammar parsing implementation, I= was > wondering if it could be worth making a CEDET Semantic SCSS parser > (and thus CSS one). It would give much more flexibility. We could > include variables from other files, functions and mixins support or > even a CSS tree structure of a project. > > Best regards,