From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#73978: 31.0.50; Text syntax applied on too many things in tsx-ts-mode Date: Thu, 12 Dec 2024 19:19:19 +0200 Message-ID: <8178b607-8146-4798-8db8-2e08710b8cd5@gutov.dev> References: <1A3DAA8F-F00A-4984-AC0F-E62F021A690B@gmail.com> <8634k0ojpp.fsf@gnu.org> <1B168B41-6D66-422B-BA5E-17ABE5548353@gmail.com> <86bjy6m9is.fsf@gnu.org> <86serhjco6.fsf@gnu.org> <3d0c4cf6-1bc7-440e-8354-961ba5736e0d@gutov.dev> <56560205-B14A-4EA8-8818-90E27770A6C6@gmail.com> <763A8C73-8B15-43CC-98E2-5190C7941262@gmail.com> <120cbe49-c34f-4f56-a8fa-80fd2a2480c6@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37789"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Eli Zaretskii , Theodor Thornhill , 73978@debbugs.gnu.org To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 12 18:20:17 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tLmrI-0009dK-Aq for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Dec 2024 18:20:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLmr9-00069j-MF; Thu, 12 Dec 2024 12:20:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLmr7-00069W-K9 for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2024 12:20:05 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLmr4-0005jF-Qr for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2024 12:20:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=uWvxiRYhL6b0mVmIDCC8qWzvO/K7/hh3biLs+4P6R24=; b=QqwkOuH00dY2kSnb1QTDTRa/1lxi2qOx4Qb76GISX7E6PgY/QTTaPoxSWa8b2qxt8pklIMnQ11rO9eCV9eFSZ9wRIOqZVDAvelojZkAsIiU/pRgJvKEmQI/vKsQittWGVeJCjHPb1cLiGm9fzBtDhqb/OP4DWHw/RJD3KduWGGiImy+IdMrVthlVjPXhI7PPKOgFxAqCWsoq+oeaMoujbx1d+8Yd4T/f2i2lh308P09lanLILOLsH4R0Qs00E0tH3w21uquKgDkMoC4gBmIvgM7B4o3oNZB8h9DS+mfSsHymiJ5O8cqlFXCLQzhPgjH9Be5kLOaCdD3TrRgNov1OJQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLmr4-0005gw-DN for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2024 12:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Dec 2024 17:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73978 X-GNU-PR-Package: emacs Original-Received: via spool by 73978-submit@debbugs.gnu.org id=B73978.173402399321849 (code B ref 73978); Thu, 12 Dec 2024 17:20:02 +0000 Original-Received: (at 73978) by debbugs.gnu.org; 12 Dec 2024 17:19:53 +0000 Original-Received: from localhost ([127.0.0.1]:40130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLmqu-0005gG-16 for submit@debbugs.gnu.org; Thu, 12 Dec 2024 12:19:52 -0500 Original-Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]:59887) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLmqm-0005ft-Ly for 73978@debbugs.gnu.org; Thu, 12 Dec 2024 12:19:49 -0500 Original-Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 392D61383FE5; Thu, 12 Dec 2024 12:19:24 -0500 (EST) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Thu, 12 Dec 2024 12:19:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1734023964; x=1734110364; bh=uWvxiRYhL6b0mVmIDCC8qWzvO/K7/hh3biLs+4P6R24=; b= LLuRKR+8ln72CLW4ONVlLs3+b9w4LDNUzXHwe/NtFtZGx56r+QmwsbBcTlcM/yvf KIEV1ePPj6KRes7c07CIqdbvSP94t15V9a//rfahhctls7k+lzwvzYz4XbTbygWD U41vDv7L9S9hslcJXkMD6b7zXQec7qkqShxdlaEhurpWjYVsu+MQhUBpFtXr2qmT Mvse/LFOgYow79IA9M6msB2FLFcsfGRNcVA2cIgYazv5zBPRTuR0UoY+vLoRJxVg G4Ilrl9TgO/klR0H40Yu1cEgAhRel1aCWbvydgNN0tCU7n8XlmHN3D26hdTXOXQG mRIM3Eq+yRrUILjAhocv5w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1734023964; x= 1734110364; bh=uWvxiRYhL6b0mVmIDCC8qWzvO/K7/hh3biLs+4P6R24=; b=b M/hi03GTRlnY4Dw+PEQsj87pGYsRZmcMwVfqaacpl5u4hd/MlCQb3EWNPCIn9ewl sbQC/9al5zfuopVK4ugyJTahDwp2kcoxaZXXc8lI37FacTun43vR68CKFNcwiqv7 TtKAOqM0X6FsLOV7QcxSQRFabZS9KLZgMzsQck8Qc+tgDhWjIYCMAyrQu36WeyZT M3nBwSfkjtce6ps3FMYJa/54kZ89gH7Q6DTCXVPVErG2LlQmYccec1noviQSGmgd dW5ShRcUBwczxy978Gbdh9dQO6MUwOt9Bqak+fjT1hqyGWlTWSLrtovr42iaFBSn zgTwrlwK9MEZqf7XydYmA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrkeehgdeljecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeen ucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvg hvqeenucggtffrrghtthgvrhhnpeefvdejveeiffefueekleevieekgedttdevieelvefg vdfghfdtgfegfeefgeeigfenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehg uhhtohhvrdguvghvpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprh gtphhtthhopegtrghsohhurhhisehgmhgrihhlrdgtohhmpdhrtghpthhtohepvghlihii sehgnhhurdhorhhgpdhrtghpthhtohepthhhvghosehthhhorhhnhhhilhhlrdhnohdprh gtphhtthhopeejfeeljeekseguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 12 Dec 2024 12:19:21 -0500 (EST) Content-Language: en-US In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296928 Archived-At: On 12/12/2024 06:56, Yuan Fu wrote: > How hard is it to add a new syntax for this case? Or is there some way to work around this? We can’t just not apply the string syntax, because if the “a” is a parenthesis, etc, it would mess up the parenthesis balancing after it. Probably not very hard, but that seems like it'd affect the total set of syntax classes - which means adding it to the manual, etc. > Maybe just give it a whitespace syntax? Right, in such cases I applied the "whitespace" or "punctuation" syntax to the whole character span, like in https://github.com/dgutov/mmm-mode/blob/master/mmm-erb.el#L97