From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu 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 21:47:41 -0800 Message-ID: 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> <8178b607-8146-4798-8db8-2e08710b8cd5@gutov.dev> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4934"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Theodor Thornhill , 73978-done@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 13 06:49:25 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 1tLyYG-00018f-W0 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Dec 2024 06:49:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLyXy-0004EO-OA; Fri, 13 Dec 2024 00:49:06 -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 1tLyXv-0004Dt-UB for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2024 00:49:04 -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 1tLyXv-0000RP-MR for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2024 00:49:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:Date:In-Reply-To:From:Mime-Version:To:Subject; bh=GBzZmAAMtx6RYU5hsSS20+4tH87xvaBxYKpdppAjqB8=; b=omFvkCPTHpfUXZXj/y+xDLH9iJwfXp8UcEA62WfrPA1fNk+/+rCw6sHcQkQWa04nH/HC4g2/r9gC2b6S2HaayALyJI6dDC9KG/Fq/dQsYQF1cqYyPH8miEzo5mj9qqYorLM5hJiZ+YKGF9d8vXV6mZOhxgbf5eia2ghU9PfxoSPjP/5WYZrr9oXLzVRhHE2XyVKMZK+MGZ00QEWh8/9EEW/ZqDP7n2BSVuqWZSJ2hyUDjr7Wn+/yqqMXn8By2B4eqcRWemk7/CxT4x+rb9TmrTXWEGpnpOnHVtfTuDSkmOLBI0kWLdThArzhRPt2rxFuh44EsmxQMfjVsDzFLHH5PQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLyXu-0000if-Gk for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2024 00:49:02 -0500 Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Dec 2024 05:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 73978 X-GNU-PR-Package: emacs Mail-Followup-To: 73978@debbugs.gnu.org, casouri@gmail.com, casouri@gmail.com Original-Received: via spool by 73978-done@debbugs.gnu.org id=D73978.17340689372746 (code D ref 73978); Fri, 13 Dec 2024 05:49:02 +0000 Original-Received: (at 73978-done) by debbugs.gnu.org; 13 Dec 2024 05:48:57 +0000 Original-Received: from localhost ([127.0.0.1]:41262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLyXo-0000iE-Pk for submit@debbugs.gnu.org; Fri, 13 Dec 2024 00:48:57 -0500 Original-Received: from mail-pl1-f172.google.com ([209.85.214.172]:53406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLyXl-0000i2-Qn for 73978-done@debbugs.gnu.org; Fri, 13 Dec 2024 00:48:55 -0500 Original-Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-215770613dbso9576885ad.2 for <73978-done@debbugs.gnu.org>; Thu, 12 Dec 2024 21:48:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734068873; x=1734673673; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=GBzZmAAMtx6RYU5hsSS20+4tH87xvaBxYKpdppAjqB8=; b=AgCnidb8jXFegUEu1pS1Zb35wk2t4FqY2YvHWC5zcCmhNCO47wt9+wmwNr+985AYV+ p5u8vvoWhK7hsbqOdSg03/2kWoGsqJGrq3sjNex+RLKmume+/MCBQNiqqdl03FR4Zl/P BRJud7+KUbl/aVDkMCkS/8ibFelwabpAB4JPj7+VqGWyq5ZWEumAqzhQ1CJP2tPFPRPl ju/cF9c+UlDwcAT8Az+pe9tBiRLoi+AiUwBa1v/7cB+txxXUg8cHa78CZyByyP+C7zD1 tCOjmEcolHrCZQ7WXn4OfUMaZOeuYO8SsRzndesPcMceJUZR27OmhbbmEjjskGn2svSf XIlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734068873; x=1734673673; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GBzZmAAMtx6RYU5hsSS20+4tH87xvaBxYKpdppAjqB8=; b=NTezhNHJpXyBboBz7GEh5db0QHIgSyYOLi95AGvGYWPm0JKYA+tBE5ty+HpoZ5+A5W FwcwqzpAeYK37dufyoyjAGFF30MySlZ/15NzXJ2/bWRFRpgKNOZxl0tlw3NyiLx0ar0h Hzuy3z9KuBHBMUWcfoTG1xWoGOdCn8N85E35OYJBlyDqo9LY0iTcwOETT0ExjhijncAY sZ3f0TOPi3AvACToJ7oZr5aUNwuSflx6srs4orILMg4yVIsaHqMkf9BI0T2sGV+tyZyQ rf+YpcrScaza9okl7qyTzgp2sWCS6aeNAgbeQmjsZ5oqF5+8qgNk9YaaIveSBzV6aveW UTpg== X-Forwarded-Encrypted: i=1; AJvYcCVBuUwp+1KmkUjRt5mDwEStKsdU7nb++rzdaCz7vq23HsV1l3Tsb2IhqJJsX589fLf73GXq2HqENuwe@debbugs.gnu.org X-Gm-Message-State: AOJu0Yz0inaEnCDjiI2K7sOqTRIqoayo+bzkUb1q3il7536k/LIRW1g7 jqPLov5vCSjZItp8xp3npJLYJzmlIuFaQ7h7ohX3ibc9r3iyH2ks X-Gm-Gg: ASbGncte0f0e/Ug2rbIY4O1lgRn0qsuLCjBntqevYUtAWYQuGdWUn9jhRibfekXv4dg 8Q77vg/0DAa5KtjP1GPtDQu+Uqq8Bp3R+DSkjkFPk/kCR5l2QsIZVmS1XOVo5w8j6AxGfHa54oi F7a82PHjDIAaAfJsPwZX+zVmM9b7eoWL5hP6MDlmj8nCf7EU/dohmiYs8c7wgcsnIjxH4iz99aH TRnKAOpo2WKFV9mAnLKQNQzs3klFdShxbVur8V6ZwAeDgNSVDsUeVoFHYkVUCBKPxZ79NSY0Sqq yUMN X-Google-Smtp-Source: AGHT+IHs5GFzhLZ6bGGsBZXfvhXO0X7t4EQjf2d+lYD/UgwWEIu4ZSJ1QHLoPELUxxPVAy+SmKHuzQ== X-Received: by 2002:a17:902:d543:b0:216:2426:767f with SMTP id d9443c01a7336-21892a41d41mr24131055ad.49.1734068873066; Thu, 12 Dec 2024 21:47:53 -0800 (PST) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:1591:1a19:416c:1925]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-215f8e3e875sm132757035ad.19.2024.12.12.21.47.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Dec 2024 21:47:52 -0800 (PST) In-Reply-To: <8178b607-8146-4798-8db8-2e08710b8cd5@gutov.dev> X-Mailer: Apple Mail (2.3776.700.51) 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:296957 Archived-At: > On Dec 12, 2024, at 9:19=E2=80=AFAM, Dmitry Gutov = wrote: >=20 > 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=E2=80=99t just not apply the string = syntax, because if the =E2=80=9Ca=E2=80=9D is a parenthesis, etc, it = would mess up the parenthesis balancing after it. >=20 > 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. >=20 >> Maybe just give it a whitespace syntax? >=20 > 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 Thanks. I went with the whitespace trick and pushed my patch to master. Yuan=