From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.bugs Subject: bug#25525: 25.1.90; add color highlighting to css mode Date: Mon, 20 Mar 2017 15:28:33 -0600 Message-ID: <87wpbj1vum.fsf@tromey.com> References: <87mvefh8br.fsf@tromey.com> <1485375833.1960.0@smtp.gmail.com> <1485455113.4245.1@smtp.gmail.com> <1487359774.1998.0@smtp.gmail.com> <1488653191.6153.0@smtp.gmail.com> <1488738524.13864.0@smtp.gmail.com> <871str3b48.fsf@tromey.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1490045359 24581 195.159.176.226 (20 Mar 2017 21:29:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Mar 2017 21:29:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 25525@debbugs.gnu.org, Simen =?UTF-8?Q?Heggest=C3=B8yl?= To: Tom Tromey Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 20 22:29:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cq4rX-0005Y9-Un for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Mar 2017 22:29:12 +0100 Original-Received: from localhost ([::1]:34924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cq4rc-0007f7-90 for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Mar 2017 17:29:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cq4rR-0007ez-Lz for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2017 17:29:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cq4rO-0004dK-Im for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2017 17:29:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38585) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cq4rO-0004dF-9M for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2017 17:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cq4rO-0002fR-0v for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2017 17:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tom Tromey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Mar 2017 21:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25525 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 25525-submit@debbugs.gnu.org id=B25525.149004532810232 (code B ref 25525); Mon, 20 Mar 2017 21:29:01 +0000 Original-Received: (at 25525) by debbugs.gnu.org; 20 Mar 2017 21:28:48 +0000 Original-Received: from localhost ([127.0.0.1]:36784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cq4rA-0002ey-5t for submit@debbugs.gnu.org; Mon, 20 Mar 2017 17:28:48 -0400 Original-Received: from gproxy3-pub.mail.unifiedlayer.com ([69.89.30.42]:48744) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1cq4r8-0002ei-Pw for 25525@debbugs.gnu.org; Mon, 20 Mar 2017 17:28:47 -0400 Original-Received: (qmail 18669 invoked by uid 0); 20 Mar 2017 21:28:38 -0000 Original-Received: from unknown (HELO cmgw3) (10.0.90.84) by gproxy3.mail.unifiedlayer.com with SMTP; 20 Mar 2017 21:28:38 -0000 Original-Received: from box522.bluehost.com ([74.220.219.122]) by cmgw3 with id yMUa1u0052f2jeq01MUdFz; Mon, 20 Mar 2017 15:28:38 -0600 X-Authority-Analysis: v=2.1 cv=WOnsABcR c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=6Iz7jQTuP9IA:10 a=OMxaGbVGeYZlZD2423QA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=LA2CfeXq+A8cJ7TE2DH4NI+zxcXlkiC0gokwK8+fK2U=; b=i0urP0sseOBpihqbRihRXj7SZD 5EhZnEoCuGc2WFBI+NNeRfQIUxgEMglkHiYIIUJedLaFf5Vkt9YMh9Ch/MXmknISIdJ22w4UgLrXZ OHsdkjOc+s3v9tAxQKuGdvNW0; Original-Received: from 75-166-14-202.hlrn.qwest.net ([75.166.14.202]:60022 helo=bapiya) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cq4qv-0008Gc-W2; Mon, 20 Mar 2017 15:28:34 -0600 X-Attribution: Tom In-Reply-To: <871str3b48.fsf@tromey.com> (Tom Tromey's message of "Mon, 20 Mar 2017 15:13:27 -0600") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box522.bluehost.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.14.202 X-Exim-ID: 1cq4qv-0008Gc-W2 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-14-202.hlrn.qwest.net (bapiya) [75.166.14.202]:60022 X-Source-Auth: tom+tromey.com X-Email-Count: 4 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:130763 Archived-At: Simen> Here's another one: SCSS variables and mixins with the exact same name Simen> as a color are highlighted. So in the following, both instances of Simen> "black" are highlighted in black: Simen> @mixin black { Simen> $black: #000; Simen> } Tom> Fixing "$black" seems possible. I'll take a look. I just tried my patch and "$black" is not highlighted here in scss mode. I think that's expected, now that I look at it, because css--colors-regexp starts with a "\_<", so it only matches at symbol boundaries. Tom