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.devel Subject: Re: Faces in bash-ts-mode Date: Sun, 5 Mar 2023 14:23:06 -0800 Message-ID: <95855C48-0538-4171-8D31-C6F824755CF8@gmail.com> References: <83bklacluc.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) 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="28036"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 05 23:24:12 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pYwm4-00073d-E3 for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Mar 2023 23:24:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYwlH-0006k8-Q5; Sun, 05 Mar 2023 17:23:23 -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 1pYwlF-0006jd-OT for emacs-devel@gnu.org; Sun, 05 Mar 2023 17:23:21 -0500 Original-Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYwlE-0004V7-8v; Sun, 05 Mar 2023 17:23:21 -0500 Original-Received: by mail-pj1-x1031.google.com with SMTP id me6-20020a17090b17c600b0023816b0c7ceso11393493pjb.2; Sun, 05 Mar 2023 14:23:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678054998; 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=nl/yC3/KhTl7T5tbHXMlpHo4Dv0zov3CVCpFigIwUko=; b=eFDI+UgwuqErevzQuSIlYTJCFpI0paF2N8QdzB159qshlQ0u2ebjZPbPiy1LSimfLC 9ut4hiZ1hywvrUTjQqBi+qq/VMffblhpsnEOEoARe7KBXDaoUI1grfcP6ErSMuOs2nxj S7EJPhhOhski3cYrfl2Z2xtKWOtKcrp7QgRTWCRUI8ruEi4/EgYUjZ0cgOg0x1XkfqAk +kQk4vZkKiRmUe9te8+0uF9u6Likp316f4syw5ukQFXx+LHUtgELv+T3buXlyOhdKwgF r4AxMTbkH8+XgSdQVrSmEQeSOobPyCRa+h7zPuTrGmnUZUa6UHE5K1U1v1oPd23QrAKJ MmRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678054998; 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=nl/yC3/KhTl7T5tbHXMlpHo4Dv0zov3CVCpFigIwUko=; b=eQIfmzSdr8AdDPS4nCOsABMLbFUn9ewaxac4u2MIIfREdpe17+jXYDBdZaoeqk2zJi 4yUFGq9JezzC9iZgAjMYimvWAVwAl4q3wWvTGy2SJqObwIVpDBbMQTmc3aRQH2wLIYTk vZYokfBTwIttubhKtFUUzaxXwdlKydKtjwDo7KCnfe7HdaILUdQrfWfF7nFV1Cef2dCO //9FnQ4Db1uYSzVNeSkEdv4SM2Hi3qYQyPRoM9YZgimCxTLDWH6aL2VvPc0BFkvMeGdG PPHT2fToaUMx7CBbrMh3vjchKSDciZknojBbvyILqqdz+c+v8J+GsX1VLTV1XTFCPUGS Et5w== X-Gm-Message-State: AO0yUKWUV5YDzZsRCdKpYUfHpTUNxunfHfaLf1S5PL81a99L83mdOdmp 1NEN8SYSfoQ0r5WRqYoo8M8puDlBEhc9dw== X-Google-Smtp-Source: AK7set/ccdAbXvl8jkixqXX8b0C0KsxJrcvu/WSZQHoz/2W9mD2wyJwipa2XK4pWV/+As0xX0qSbrA== X-Received: by 2002:a05:6a20:7faa:b0:c7:7afa:5016 with SMTP id d42-20020a056a207faa00b000c77afa5016mr12201795pzj.9.1678054997592; Sun, 05 Mar 2023 14:23:17 -0800 (PST) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id v13-20020a63f20d000000b00502e7115cbdsm4995066pgh.51.2023.03.05.14.23.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 Mar 2023 14:23:17 -0800 (PST) In-Reply-To: <83bklacluc.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.400.51.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=casouri@gmail.com; helo=mail-pj1-x1031.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304002 Archived-At: > On Mar 2, 2023, at 11:53 PM, Eli Zaretskii wrote: >=20 > Is there an easy way of having some of the sh-script's special faces > in bash-ts-mode? The one I spotted to be missing is > sh-escaped-newline, but maybe sh-quoted-exec is also missing? I added support for sh-quoted-exec, but because tree-sitter ignores the = escaped newline, it doesn=E2=80=99t show up in the parse tree, so it=E2=80= =99s not as easy to support that. I not an expert in bash syntax, can I assume that an backslash at the = end of a line that=E2=80=99s not in a string must be an escaped newline? > Also, do we use sh-heredoc face for here-documents in bash-ts-mode? > If not, can we use it in that case? We do, so that=E2=80=99s taken care of :-) Yuan=