From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oFvZNAYXJmTWWAEASxT56A (envelope-from ) for ; Fri, 31 Mar 2023 01:11:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SOSUNAYXJmT1ogAAauVa8A (envelope-from ) for ; Fri, 31 Mar 2023 01:11:02 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2FD2BC230 for ; Fri, 31 Mar 2023 01:11:02 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pi1PM-00055g-IG; Thu, 30 Mar 2023 19:10:16 -0400 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 1pi1PK-00055E-85 for Emacs-orgmode@gnu.org; Thu, 30 Mar 2023 19:10:14 -0400 Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pi1PI-0001hB-3s for Emacs-orgmode@gnu.org; Thu, 30 Mar 2023 19:10:14 -0400 Received: by mail-qk1-x72d.google.com with SMTP id j10so6373900qkg.12 for ; Thu, 30 Mar 2023 16:10:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chen-becker.org; s=google; t=1680217810; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=mwByZHwKhJV1ZwkclARuE5gYk5KeyM5ZDrt4BhLjOto=; b=gDcGQ/x7YUQ9kX6xCqGMfTBI4o6/vJVLqZ+LOvYnWZtWZ1dmXvmp93Rx9iWnSFZzbV cLmQAI4ly5psPgq9zNqk2gg+To6LW4MojcOdXuqdVOJy/5T7jp1qxZF8Zw0VB2+5BvFP zX2Xk2xtOhlMN5/vt3lgwTDhRIWBkbqOmUzeKfEnkQCB1F+8UhV1aoAuqvtjulP1NfG8 bbZXvsy/rKTnu60tGdpUG1d3EZMF21LJpjCok64Kbi0sDUd15rxUl0PGesX434uRqfmN xCrq7hN0zOR9p/RR3CP+I6/g6k6kU4RnOcv3MZo/G/JeJrmYgCDJvGAxMo/v1FCYjFgB sG8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680217810; h=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=mwByZHwKhJV1ZwkclARuE5gYk5KeyM5ZDrt4BhLjOto=; b=nmuJZMFoI+R0RMFS4qgbtM7HRNsHMg8FnKIKylkJ7R3+YtA17azQaMA9vZ5uvXlpnk +xEvqCgdB7jrlqxIvhc0O4URSJaIT7BZjRO6yJJpN2+zZnKBKTbAzm5VwlVE5z6g+t71 pgJgK+E4EsCmgKMjYwyH3beU62+Tgiu/wG0G2ILQWvJEMjbHyldEK2bJyy93zKYvOBMa UT0ErnouSEA/ppHxaQu7eBDlbxU1+e0wMqWl8OgSeZZnMeIUuDYbiw0gAeVyY/O8CXbd gmTvM1Dx+8OxwdyCzJeDIHy6OBPlTk093T2vjWWKxK00H55QndurqGMMI8LbrCBZ0DkO 9UDQ== X-Gm-Message-State: AO0yUKUebF6iU6u91iTQu1lyPGlqPmVdn9uqLBkiaUs2JFvOg/J7HIo6 qtHSX/oGmtEbE6+gmGWsXm0fjvpiT+cuxDWnUIqVlQ== X-Google-Smtp-Source: AK7set/p5m+CMahXpqa4Wc8f0nTZS+GByLZhaLFOH+M9FkR35s2c00Bjrx6+Np6RvFZ748t3JfQ9s+Qa4QuBvbk1j2I= X-Received: by 2002:a05:620a:2148:b0:71f:b8ba:ff4c with SMTP id m8-20020a05620a214800b0071fb8baff4cmr6506366qkm.10.1680217810265; Thu, 30 Mar 2023 16:10:10 -0700 (PDT) MIME-Version: 1.0 References: <1872a35eeec.dcff8bea422796.5356383202108217532@excalamus.com> <87pm8rx5lb.fsf@localhost> <1872f04dea1.12a910409155047.1986659191838711991@excalamus.com> <87jzyyehwr.fsf@localhost> In-Reply-To: <87jzyyehwr.fsf@localhost> From: Derek Chen-Becker Date: Thu, 30 Mar 2023 17:10:01 -0600 Message-ID: Subject: Re: [BUG] No font lock in src blocks for shells in org-babel-shell-names (was Re: Font lock for org-babel shell scripts?) To: Ihor Radchenko Cc: Matt , Emacs-orgmode Content-Type: multipart/alternative; boundary="000000000000ba00a605f82631f1" Received-SPF: pass client-ip=2607:f8b0:4864:20::72d; envelope-from=derek@chen-becker.org; helo=mail-qk1-x72d.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, HTML_MESSAGE=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-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680217862; a=rsa-sha256; cv=none; b=O2fj2bx3A70teQlIvbYGt5r+ER7/ts9v+ueqvSbxOzdTWwTHycsH3eH6EEmhL6oJoJpLdM 8xaUlPGKoYhMrlRFFLaY5KcjixfHgpUQTzm9y+4SRNyDi3WzOSrHEN68AmSpn6DI8l+vnq uRWOY7wPLi+9N6Qizg+rruqPSx65N5GlAeP1svly8cjhhwdivcoFiXZLfi7ysP5ElC2REl UTByxubk5IXP9LaZxu8TVN7zH4yT7Bt25Cp4wWcdE+SHpe3Fi2hw8+scbtfX5R2aMxkIcO iQogN7ASF+FhFRlqjO/wxLchmWtEmjIU0SgT2mYr93S17C2O5JoGkNmWsm7AzA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=chen-becker.org header.s=google header.b="gDcGQ/x7"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680217862; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=mwByZHwKhJV1ZwkclARuE5gYk5KeyM5ZDrt4BhLjOto=; b=cwygxMoUR/U5rWEhx3JJqdrZzm3ggXzYWLL8bV4/+p4yX+mx5Ln04PCx1HE4V2UNQty7gB SkoKdWgQi3oAyyGDvgef3gdaM585RGWQWiqYhpnqCKaUQdKEaKSPNMHo22MChTHQzuk2ZA bBaLU3J8BegNl/aX1ZAMfuTCHZ1rokGrtw9pLnGJdXswXOAwE0R8BgbcSb61M/2Bbmo7YV W6rUMg3BbYBCos46soWthnKErTcu0YzxUygXUV+i1ex2pEoprBlpPEhBYfTFr7pazAaPo5 4GCUjY1U9B0LSJA6GvPMPpf9FgTykoI4gkwenbuC4TdV2YFSwON3veFw/z375Q== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=chen-becker.org header.s=google header.b="gDcGQ/x7"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.72 X-Spam-Score: -3.72 X-Migadu-Queue-Id: 2FD2BC230 X-TUID: 8UtxxVG7L3k3 --000000000000ba00a605f82631f1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Would it be fair to use the sh-ancestor-alist as a basis for all of the supported shell variants? https://github.com/emacs-mirror/emacs/blob/master/lisp/progmodes/sh-script.= el#L177 Cheers, Derek On Thu, Mar 30, 2023 at 2:54=E2=80=AFAM Ihor Radchenko wrote: > Matt writes: > > > I think this approach will work fine. I tried examples for each shell > type and keywords like if/then/else and function names are highlighted. > > Even for posh (powershell)? > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --=20 +---------------------------------------------------------------+ | Derek Chen-Becker | | GPG Key available at https://keybase.io/dchenbecker and | | https://pgp.mit.edu/pks/lookup?search=3Dderek%40chen-becker.org | | Fngrprnt: EB8A 6480 F0A3 C8EB C1E7 7F42 AFC5 AFEE 96E4 6ACC | +---------------------------------------------------------------+ --000000000000ba00a605f82631f1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Would it be fair to use the sh-ancestor= -alist as a basis for all of the supported shell variants?


On Thu, Mar 30, 2023 at 2:= 54=E2=80=AFAM Ihor Radchenko <yan= tar92@posteo.net> wrote:
Matt <matt@excalamus.com> writes:

> I think this approach will work fine.=C2=A0 =C2=A0I tried examples for= each shell type and keywords like if/then/else and function names are high= lighted.

Even for posh (powershell)?

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>


--
+---------------------------------------------------------------+=
| Derek Chen-Becker=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0|
| = GPG Key available at https://keybase.io/= dchenbecker and=C2=A0 = =C2=A0 =C2=A0 =C2=A0|
| = Fngrprnt: EB8A 6480 F0A3 C8EB C1E7=C2=A0 7F42 AFC5 AFEE 96E4 6ACC=C2=A0 |
+----------------------= -----------------------------------------+

--000000000000ba00a605f82631f1--