From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Faces in bash-ts-mode Date: Mon, 6 Mar 2023 20:10:03 +0700 Message-ID: References: <83bklacluc.fsf@gnu.org> <95855C48-0538-4171-8D31-C6F824755CF8@gmail.com> 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="12968"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 06 14:10:35 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 1pZAbr-0003Dc-EI for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Mar 2023 14:10:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZAbc-0002nw-VB; Mon, 06 Mar 2023 08:10:20 -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 1pZAbb-0002nf-3K for emacs-devel@gnu.org; Mon, 06 Mar 2023 08:10:19 -0500 Original-Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZAbZ-0002sy-GJ; Mon, 06 Mar 2023 08:10:18 -0500 Original-Received: by mail-wr1-x42d.google.com with SMTP id h14so8756674wru.4; Mon, 06 Mar 2023 05:10:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678108215; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=x/pN5epS0WjOSHtZ6XH5lUfr61T4Qgcrk1Dl9b8FX8I=; b=Vf3mMSVm54c60Y7l8oGvI/QQxr9NVvORC0XVCVG/2r4Qo/7t9fl/4HwIUW5SIDc4l/ lkUo7YPqCKgsC7SKEWBPvuk111OE79j712Qm1zvQiZG5pCHrrSZpCAy3bAP179j8J1+V rJo5f+SIcqYkfMXeqcjOu4tl/No2gu4GmZx6rjBtgVQSHgkWrSkCK/Fw385LdzZFphyh iGFedQ8cPQge1jdaNA5u5BaqWKwfLNMSjcjQ/4BLIHBz+UftwtHlXuvl6qZp+s0spBvF /FXPLYoRN2F4fOhQaXPH9bJszNZ092W3QnN4LuxrVnuufsoRwEX9Q6P9Djrrs3Tzli9E Kelg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678108215; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=x/pN5epS0WjOSHtZ6XH5lUfr61T4Qgcrk1Dl9b8FX8I=; b=5oNQdI4CtxN2eyTaaMTAOJalAOouK/FYK9SEtpBQo1S0PeTmKZv1xE+m6O2YJOuC6N c1feGScmuZIfLBB9l80p43Ph6smEYKHppd0exM9SvUwWLTV7a6X0ORgiiBQtHfxoNXOQ NjkUxM9UQc5tcXxgNcjwmEzKkG/mX7R91AgxL/DBqiVYWCbd5Ir0yJdHEg2vPkQzBhCw TendK69ELqYFS0Qjl2Inyt/bhg8bs79t7lNW4p9qgLTwtTr76Ch12+rbFZzYUc4iWkiZ WN9PSCk5c/AnstKE1pxOk0unNfKZCQ5m0gyMwGz1XtVWjWRR5Wz7AEhundLoY77gSgPZ ob4Q== X-Gm-Message-State: AO0yUKXxrBkR89qFM7YAKgwFbVJpdSWM0ytpLNVYwO83R1nixHzCRmFV ARR9MneWh6hzcd8V9E6zl+7jdALKoYd+a5TQ7Ls= X-Google-Smtp-Source: AK7set+dqJzh7wVaDNceEZMlAoq51KpL7pRwi5LvoKo1dN6G3I4l843wBLL0f6nmt67UDvvsefHI1oolIRc218Zajbo= X-Received: by 2002:a5d:4b83:0:b0:2c5:530c:cd36 with SMTP id b3-20020a5d4b83000000b002c5530ccd36mr2279393wrt.5.1678108214702; Mon, 06 Mar 2023 05:10:14 -0800 (PST) In-Reply-To: <95855C48-0538-4171-8D31-C6F824755CF8@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=yurivkhan@gmail.com; helo=mail-wr1-x42d.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:304038 Archived-At: On Mon, 6 Mar 2023 at 05:23, Yuan Fu wrote: > 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? I don=E2=80=99t know the full context, but a backslash at the end of a line could be a backslash-escaped backslash: echo \\ # that was a command to output a single backslash and the whole heuristic if you=E2=80=99re not doing a full parser would probably be =E2=80=9Ca backslash at the end of a line that is preceded by a= n even number (incl. 0) of backslashes is an escaped newline=E2=80=9D. echo \\\ this is a continuation line