From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 10 11:42:57 2015 Received: (at submit) by debbugs.gnu.org; 10 Aug 2015 15:42:57 +0000 Received: from localhost ([127.0.0.1]:52314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOpE0-0001De-JK for submit@debbugs.gnu.org; Mon, 10 Aug 2015 11:42:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35352) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOpDx-0001DT-Td for submit@debbugs.gnu.org; Mon, 10 Aug 2015 11:42:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOpDw-0007e8-KB for submit@debbugs.gnu.org; Mon, 10 Aug 2015 11:42:53 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOpDw-0007e4-Gs for submit@debbugs.gnu.org; Mon, 10 Aug 2015 11:42:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOpDv-0004sW-H3 for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2015 11:42:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOpDr-0007df-GS for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2015 11:42:51 -0400 Received: from mail-la0-x236.google.com ([2a00:1450:4010:c03::236]:36508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOpDr-0007dN-8D for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2015 11:42:47 -0400 Received: by lagz9 with SMTP id z9so55821645lag.3 for ; Mon, 10 Aug 2015 08:42:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:subject:to:message-id:mime-version:content-type; bh=Y9OV2GBb2Ljxb3ueeM/NoEWdGw6pBFeFT2VKPGwCDpA=; b=eSlx/JlmOrc0b/S78HqY2+e05vOVp3L1enpkpo2nr2y1Vtkn0DW7bDcoFH/XbggGKC WW1mZmCnyAVkqrGqr64OKiKcN0EWgjDM7+pYgLOihfkOilcD68zmEpBV4G2FWwEEcV20 Ib/mVzoA53l0SxH95TMbm8gACGpgKaFi3tS2dKLc0ww35VEl1VZQfVjV4jetYQedrzA3 GoI81IPHfXa2w82oGZM/iZWax+hyAPrX9QqqVER7NI/hbeDtjfsR5EqF+a0Vf1mIeJg8 mthB5yeyFGfxwadmg9S6z1Ffm6wFNZ2+CPH+JX8kekw/CNTFX/3NVMGd/uXdPPcWih29 Zl0Q== X-Received: by 10.112.242.134 with SMTP id wq6mr18255467lbc.99.1439221365360; Mon, 10 Aug 2015 08:42:45 -0700 (PDT) Received: from [192.168.100.5] (cm-84.210.143.4.getinternet.no. [84.210.143.4]) by smtp.gmail.com with ESMTPSA id pl1sm4315391lbc.30.2015.08.10.08.42.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Aug 2015 08:42:43 -0700 (PDT) Date: Mon, 10 Aug 2015 17:42:41 +0200 From: Simen =?iso-8859-1?q?Heggest=F8yl?= Subject: 25.0.50; scss-mode: Font Lock hangs on Sass lists To: bug-gnu-emacs@gnu.org Message-Id: <1439221361.1408.0@smtp.gmail.com> X-Mailer: geary/0.10.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-zQH0TTdoUQ+4KQQJbUx1" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --=-zQH0TTdoUQ+4KQQJbUx1 Content-Type: text/plain; charset=utf-8; format=flowed In scss-mode, Font Lock hangs on particular instances of Sass lists. To see an example of this, paste the following into a buffer, and activate scss-mode + font-lock-mode: $list: ( ('string', #000000, #fff) ('string', #000000, #fff) ('string', #000000, #fff) ('string', #000000, #fff) ('string', #000000, #fff) ('string', #000000, #fff) ); Font Lock hangs, and I find that I have to press C-g a number of times to be able to continue editing. In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.6) of 2015-08-10 on x240 Repository revision: a9bb9d8fc22417d1fafd8001d89a91c33c8b39ec Windowing system distributor `The X.Org Foundation', version 11.0.11702000 System Description: Debian GNU/Linux testing (stretch) Configured features: XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS NOTIFY LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: SCSS --=-zQH0TTdoUQ+4KQQJbUx1 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
In scss-mode, Font Lock hangs on particular instances of Sass lists.
To see an example of this, paste the following into a buffer, and<= /div>
activate scss-mode + font-lock-mode:

$list: (
    ('string', #000000, #fff)
&nbs= p;   ('string', #000000, #fff)
    ('string', #000= 000, #fff)
    ('string', #000000, #fff)
&nbs= p;   ('string', #000000, #fff)
    ('string', #000= 000, #fff)
);

Font Lock hangs, and= I find that I have to press C-g a number of times
to be able to = continue editing.


In GNU Emacs 25.0= .50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.6)
 of 20= 15-08-10 on x240
Repository revision: a9bb9d8fc22417d1fafd8001d89= a91c33c8b39ec
Windowing system distributor `The X.Org Foundation'= , version 11.0.11702000
System Description: Debian GNU/Linux testing (stretc= h)

Configured features:
XPM JPEG TIFF GI= F PNG SOUND DBUS GSETTINGS NOTIFY LIBXML2 FREETYPE XFT
ZLIB TOOLK= IT_SCROLL_BARS GTK3 X11

Important settings:
<= div>  value of $LANG: en_US.UTF-8
  locale-coding-syste= m: utf-8-unix

Major mode: SCSS

= --=-zQH0TTdoUQ+4KQQJbUx1-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 07:55:20 2016 Received: (at 21230) by debbugs.gnu.org; 9 Jan 2016 12:55:20 +0000 Received: from localhost ([127.0.0.1]:43654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aHt39-0006sj-SO for submit@debbugs.gnu.org; Sat, 09 Jan 2016 07:55:20 -0500 Received: from mail-lf0-f54.google.com ([209.85.215.54]:33830) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aHt38-0006sX-Fb for 21230@debbugs.gnu.org; Sat, 09 Jan 2016 07:55:18 -0500 Received: by mail-lf0-f54.google.com with SMTP id d17so25748949lfb.1 for <21230@debbugs.gnu.org>; Sat, 09 Jan 2016 04:55:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:subject:to:cc:message-id:mime-version:content-type; bh=BPbDEYmRvs864A23tAl9IIbhmPgMl3vuWiveBr6BTT0=; b=P2J+Fv2OjVg6/jsd/t5ROeVCGbb2kG/c6wNx+T4ZYOPoJ/i0typqJ2lDY0Jkg+xF3B j4LGgKeRCd380G68mhOULtZW+9Z+x4rJwWDS4bX+ST/VhQgv8ngEH1uGahgzssjDoBck sXOurWn+3JlF81TqEmq52pkCslRqLefmrqYuct50CYkvudZpQWRZhoufn7kDtYDNnrwT ihHwXf/n1PrH12UpaxaR8AU1WpSjhVeMLAwrwhxacADGTXZ5yHjqjk83r6ehA5AJZ4d6 KRccnxAxOEuAvZxBOxLDaL+zI+rJYgTXKwRAtTLmJxWoYMteRUZnSSpGFS4VpNW+SSKq NMqA== X-Received: by 10.25.3.133 with SMTP id 127mr9704007lfd.50.1452344112320; Sat, 09 Jan 2016 04:55:12 -0800 (PST) Received: from [192.168.100.10] (cm-84.210.143.4.getinternet.no. [84.210.143.4]) by smtp.gmail.com with ESMTPSA id b5sm1236696lbc.14.2016.01.09.04.55.10 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 09 Jan 2016 04:55:11 -0800 (PST) Date: Sat, 09 Jan 2016 13:55:10 +0100 From: Simen =?iso-8859-1?q?Heggest=F8yl?= Subject: Re: bug#21230: 25.0.50; scss-mode: Font Lock hangs on Sass lists To: 21230@debbugs.gnu.org Message-Id: <1452344110.13259.0@smtp.gmail.com> X-Mailer: geary/0.10.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-KG/L5XLSA3s409FZ5gHW" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21230 Cc: Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-KG/L5XLSA3s409FZ5gHW Content-Type: multipart/alternative; boundary="=-uwHpXsAPNFm5eutR/MDK" --=-uwHpXsAPNFm5eutR/MDK Content-Type: text/plain; charset=utf-8; format=flowed It seems that this happens because scss-mode thinks that the list elements are selectors. The attached patch attempts to fix this by disallowing parenthesis in selectors, except for in the function notation that might appear right after pseudo-classes. -- Simen --=-uwHpXsAPNFm5eutR/MDK Content-Type: text/html; charset=utf-8 It seems that this happens because scss-mode thinks that the list
elements are selectors. The attached patch attempts to fix this by
disallowing parenthesis in selectors, except for in the function
notation that might appear right after pseudo-classes.

-- Simen
--=-uwHpXsAPNFm5eutR/MDK-- --=-KG/L5XLSA3s409FZ5gHW Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Disallow-parenthesis-in-non-pseudo-CSS-selectors.patch >From f4ff7b89348142f103412e9aa6b3e2352dbfa567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simen=20Heggest=C3=B8yl?= Date: Sat, 2 Jan 2016 23:44:58 +0100 Subject: [PATCH] Disallow parenthesis in non-pseudo CSS selectors * lisp/textmodes/css-mode.el (css--font-lock-keywords): Disallow parenthesis in selectors except for in the function notation that might appear right after a pseudo-class. --- lisp/textmodes/css-mode.el | 10 +++++----- test/indent/scss-mode.scss | 10 ++++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 48c2484..d402fb1 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -257,13 +257,13 @@ css--font-lock-keywords (if (not sassy) ;; We don't allow / as first char, so as not to ;; take a comment as the beginning of a selector. - "[^@/:{} \t\n][^:{}]+" + "[^@/:{}() \t\n][^:{}()]+" ;; Same as for non-sassy except we do want to allow { and } ;; chars in selectors in the case of #{$foo} ;; variable interpolation! (concat "\\(?:" scss--hash-re - "\\|[^@/:{} \t\n#]\\)" - "[^:{}#]*\\(?:" scss--hash-re "[^:{}#]*\\)*")) + "\\|[^@/:{}() \t\n#]\\)" + "[^:{}()#]*\\(?:" scss--hash-re "[^:{}()#]*\\)*")) ;; Even though pseudo-elements should be prefixed by ::, a ;; single colon is accepted for backward compatibility. "\\(?:\\(:" (regexp-opt (append css-pseudo-class-ids @@ -271,8 +271,8 @@ css--font-lock-keywords "\\|\\::" (regexp-opt css-pseudo-element-ids t) "\\)" "\\(?:([^)]+)\\)?" (if (not sassy) - "[^:{}\n]*" - (concat "[^:{}\n#]*\\(?:" scss--hash-re "[^:{}\n#]*\\)*")) + "[^:{}()\n]*" + (concat "[^:{}()\n#]*\\(?:" scss--hash-re "[^:{}()\n#]*\\)*")) "\\)*" "\\)\\(?:\n[ \t]*\\)*{") (1 'css-selector keep)) diff --git a/test/indent/scss-mode.scss b/test/indent/scss-mode.scss index 7a29929..02a4a98 100644 --- a/test/indent/scss-mode.scss +++ b/test/indent/scss-mode.scss @@ -55,3 +55,13 @@ article[role="main"] { } .box { @include border-radius(10px); } + +// bug:21230 +$list: ( + ('a', #000000, #fff) + ('b', #000000, #fff) + ('c', #000000, #fff) + ('d', #000000, #fff) + ('e', #000000, #fff) + ('f', #000000, #fff) +); -- 2.6.4 --=-KG/L5XLSA3s409FZ5gHW-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 14 13:38:01 2016 Received: (at 21230-done) by debbugs.gnu.org; 14 Jan 2016 18:38:01 +0000 Received: from localhost ([127.0.0.1]:49393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJmmW-0002ju-QY for submit@debbugs.gnu.org; Thu, 14 Jan 2016 13:38:00 -0500 Received: from mail-lb0-f181.google.com ([209.85.217.181]:33950) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJmmV-0002jg-C4 for 21230-done@debbugs.gnu.org; Thu, 14 Jan 2016 13:37:59 -0500 Received: by mail-lb0-f181.google.com with SMTP id cl12so85059021lbc.1 for <21230-done@debbugs.gnu.org>; Thu, 14 Jan 2016 10:37:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:subject:to:message-id:in-reply-to:references:mime-version :content-type; bh=LPTbR608xfLD5/hyPbFVG5V/C5YufNtX51wT/xyco5k=; b=PQ9dXyxS2DbCikm9W1xn65V43P0Q7oNbKf2I+6dHXAAIWc/fxafXVWddGimUNwErGu hqfMJsJDVsHpxvXvxjyoJ9JEgglZcBs/AiFDARRpGEnzfw3gZx/9ju5OM7Ise7sMvGNo iN6WM3HqeAOarDVcJelgiOg+Wn7PmztWKIIu904pBPeRl/GMs3eznjsO71ttNzmJQYH5 aG1H/Yb4ElvgUyG1WPsKT+vKHLonM1vDOvz7+GICM3gDg0UF2D/D6Kjx4XDRvUSVg4x9 4fQiERkJsned8Ocy5kJsy9+LUv32Ou+ccRTJ6eoq0UyOypo7S8+3AUULa5+eH/+QrLDs jspQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:subject:to:message-id:in-reply-to :references:mime-version:content-type; bh=LPTbR608xfLD5/hyPbFVG5V/C5YufNtX51wT/xyco5k=; b=VdG+YIaGBr8q7o8uTIXyKH8cZDRAqDeheC+5hWxMEhAFcGzth3t6R7GcDuMWUUDVlT 6V4H/XwWQTwI//ga83vYOPZ55vm9z12gzMSA5J2OrGV7/utpYU+8Cdjw7TEoYmQfmovc d4Chdpxyte7KblvAVGEVhS7DNQFWRBnnVl3JSI+um81FhseTfvjTT+A5p1YlsT5TKsGM afUe9rVfjcXHO8ChL4v/5oY4+1a0l8+FYLFjQq7ninNWO2YtHnucf5JTnnxDoNUffH9/ /oGKco9K3G+X8oDPOZasjOkKORML0h4k5nksxoohzDQRilmBUVwbIR03PtXV5PRNtZrt LuKQ== X-Gm-Message-State: ALoCoQmSE+qK8nydY2lfqzhd8jyeTcwUJw2Ri+WRhJl1iZl5hoh5EJUeyIdDRswo7wInfw4UqCxz6KTqVRYYb+KdbJ061zaHww== X-Received: by 10.112.160.104 with SMTP id xj8mr1526441lbb.77.1452796673432; Thu, 14 Jan 2016 10:37:53 -0800 (PST) Received: from [192.168.100.7] (cm-84.210.143.4.getinternet.no. [84.210.143.4]) by smtp.gmail.com with ESMTPSA id b5sm894800lbc.14.2016.01.14.10.37.51 for <21230-done@debbugs.gnu.org> (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Jan 2016 10:37:52 -0800 (PST) Date: Thu, 14 Jan 2016 19:37:50 +0100 From: Simen =?iso-8859-1?q?Heggest=F8yl?= Subject: Re: bug#21230: 25.0.50; scss-mode: Font Lock hangs on Sass lists To: 21230-done@debbugs.gnu.org Message-Id: <1452796670.28252.0@smtp.gmail.com> In-Reply-To: <1452344110.13259.0@smtp.gmail.com> References: <1452344110.13259.0@smtp.gmail.com> X-Mailer: geary/0.10.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-oAhZ6OoD5VYN6kXeAE/l" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21230-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-oAhZ6OoD5VYN6kXeAE/l Content-Type: text/plain; charset=utf-8; format=flowed Patch installed (dadb841a). --=-oAhZ6OoD5VYN6kXeAE/l Content-Type: text/html; charset=utf-8 Patch installed (dadb841a). --=-oAhZ6OoD5VYN6kXeAE/l-- From unknown Tue Jun 24 13:59:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 12 Feb 2016 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator