From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yilkal Argaw Newsgroups: gmane.emacs.bugs Subject: bug#52496: syntax highlighting problem on emacs shell-script mode Date: Tue, 21 Dec 2021 07:20:47 +0300 Message-ID: References: <87pmpssqjp.fsf@gnus.org> <87ilvkd8ng.fsf@igel.home> <87czlsra6i.fsf@gnus.org> <87bl1cd7dn.fsf@igel.home> <877dc0vg6p.fsf@gnus.org> <877dc0d53p.fsf@igel.home> <87pmpsmwb3.fsf@gmail.com> <87sfunpq1w.fsf@gnus.org> Mime-Version: 1.0 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="8771"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52496@debbugs.gnu.org, Andreas Schwab , =?UTF-8?Q?K=C3=A9vin?= Le Gouguec To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 21 05:22:15 2021 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 1mzWfH-00025b-BC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Dec 2021 05:22:15 +0100 Original-Received: from localhost ([::1]:45726 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mzWfF-0005Ir-Fm for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Dec 2021 23:22:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzWf4-0005IU-Hp for bug-gnu-emacs@gnu.org; Mon, 20 Dec 2021 23:22:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40487) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mzWf4-0002Ds-9G for bug-gnu-emacs@gnu.org; Mon, 20 Dec 2021 23:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mzWf4-0000qr-6q for bug-gnu-emacs@gnu.org; Mon, 20 Dec 2021 23:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Yilkal Argaw Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Dec 2021 04:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52496 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo patch Original-Received: via spool by 52496-submit@debbugs.gnu.org id=B52496.16400604883207 (code B ref 52496); Tue, 21 Dec 2021 04:22:02 +0000 Original-Received: (at 52496) by debbugs.gnu.org; 21 Dec 2021 04:21:28 +0000 Original-Received: from localhost ([127.0.0.1]:52027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzWeW-0000pf-8o for submit@debbugs.gnu.org; Mon, 20 Dec 2021 23:21:28 -0500 Original-Received: from mail-yb1-f177.google.com ([209.85.219.177]:36758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzWeR-0000pN-FZ for 52496@debbugs.gnu.org; Mon, 20 Dec 2021 23:21:27 -0500 Original-Received: by mail-yb1-f177.google.com with SMTP id d10so35083259ybe.3 for <52496@debbugs.gnu.org>; Mon, 20 Dec 2021 20:21:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=SWj0K9xJ8Jncwicr5zDwNTcTItSzPr9C/TtM2fT2oaw=; b=QOF86TnrNKU2TM/t6/Ij4PV0Jv20KOyYjBgFyks20uwVBQJWYtXxRPudP/f4/iLX1c d+7MwsI8b4Zcr7A0d70+zSRx3TirYxQGd+GJCXzISQ4fy2eIjcnb5ntwZ3Lf0ps8tPPG EY5LdfYa5ZStpUTtpPwm4DGdm1hriCfWyQi8aqDTlMW4ZUePefH3s1/wAnz72Rx70jSl mE1gv2h7M06g89x0UVo2ogLI3qZRffG4j74iI5+a86ajBlwT6QcUlLq+R/yywbW1PP+f 8hHsLeDHn3ce71mPdBpyXvCMVdHJJoopKROC0BvCvN4nxwCT/PquwvkDlDg9ujyNadDZ /z6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=SWj0K9xJ8Jncwicr5zDwNTcTItSzPr9C/TtM2fT2oaw=; b=JXJ6loXh0ssR6NY1JaAPqC6ctpMCoPVI47U1t/J++J0qozWKZVyZluLJ2PaLkdEkgi NbV0n2gz7vL6RU2BH8AblHGi66w0SxRBOxnZ6urbg+Du3vDyMKEa54KkrX4XBHQtrSBA xhKJP0tU+WamO3NNZa26S77NQGG+hQvCIFsaFAgRrFMEjUz2qbzSEgAMYaIpkVyUIbbq Pn59uiunEDMi5+YrsyFK+Vo3nrlCPba9mxiQCciv//JB+JGq+KTnylbol5lXx0E3UOrs Jbqp+UL9A/qWZaxGmS+Rujl7ufh24/zqeHKAAHCJ3kuzGiLCT/+VGTyv04LDZq2WPDzZ aWiA== X-Gm-Message-State: AOAM530/FjlNNLYAsSxgN+1sf+7dJv5Ac2UUqslHwJ38LkKJEOdo4lIw GlcxKtg+1pn+ROIxgcXbE0EvOh+qWCnIO66SL1Y= X-Google-Smtp-Source: ABdhPJx0ghhUpK4QHKNK4VEiJyrVJOSKb24Hg+C4h4LzPzvJK3BKWBqkUiwt3ln5MoGdP+XLv579/FkUY54emlQb6t8= X-Received: by 2002:a25:d386:: with SMTP id e128mr2090121ybf.176.1640060477906; Mon, 20 Dec 2021 20:21:17 -0800 (PST) In-Reply-To: <87sfunpq1w.fsf@gnus.org> 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" Xref: news.gmane.io gmane.emacs.bugs:222849 Archived-At: Yes, I agree. I think this is enough for now until a refactor becomes necessary. On Mon, Dec 20, 2021 at 12:46 PM Lars Ingebrigtsen wrote: > > K=C3=A9vin Le Gouguec writes: > > > So IIUC for here-documents anything is fair game except (1) > > {single,double,back} quotes (2) metacharacters (3) backslashes and > > comment openers (#); all of which can still be used if quoted or escape= d > > *on the opening line only*. > > Thanks. > > As far as I can see, sh-mode doesn't really try too hard to be correct > here -- it accepts word constituents, but then adds back -/~._ which it > has defined as punctuation in `sh-mode-syntax-table'. So perhaps we > should just continue doing that and add @, too, even though that's not > very satisfactory. > > So I've now done that in Emacs 29. > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no