Subject: Re: bug#53203: Comment with lots of color codes crashes or hangs emacs in scss-mode

From: Simen Heggestøyl <[email-masked]>
Date: Sun, 15 May 2022 16:46:57 +0200

Lars Ingebrigtsen <[email-masked]> writes:

> Simen Heggestøyl <[email-masked]> writes:
>
>> I tested a bit with the patch you posted 15:30 yesterday, but it seems
>> to have some problems:
>>
>> Pasting this into a CSS mode buffer now freezes up Emacs:
>>
>>   /*
>>    * xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>    */
>>
>> Selectors with hyphens are no longer highlighted, e.g.:
>>
>>   .foo-bar {
>>
>> Only the last part of multi line selectors are now highlighted,
>> e.g. only `body` here:
>>
>>   div,
>>   body {
>
> I've now fixed these and pushed the change.

Thanks! Looks good.

The new selector tests makes it much less scary to tweak the regexp.