From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id eKPdH9i8KGQlCgAASxT56A (envelope-from ) for ; Sun, 02 Apr 2023 01:23:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eDH2Hti8KGQDCgEAG6o9tA (envelope-from ) for ; Sun, 02 Apr 2023 01:23:04 +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 050E19BFE for ; Sun, 2 Apr 2023 01:23:03 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pikXy-0001Tv-F1; Sat, 01 Apr 2023 19:22:10 -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 1pikXt-0001Tl-RM for Emacs-orgmode@gnu.org; Sat, 01 Apr 2023 19:22:06 -0400 Received: from sender4-op-o15.zoho.com ([136.143.188.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pikXs-0002O0-8c for Emacs-orgmode@gnu.org; Sat, 01 Apr 2023 19:22:05 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1680391318; cv=none; d=zohomail.com; s=zohoarc; b=GWufXTJvWcLjXIf6vVqe5S5ctdDmZ+P+O8/VKyALcvYJ4dAYLDUZzrLRIsGu6HkwMvXPrtkLNKPXVq2gzH9U1PbK7lKalRto9azA8Wm3M5fe4BJsZ/7kl2SaXBa8IxaluiqQInpqUA91RHUiCW1SOFjiCPj0/CFqVHIqYskEKUU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1680391318; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=FEh7LEnt44ZYTwKlDoJZWwC2sNc4hLv4a3+pBvBAs1s=; b=QOvHMOsM1QmEmc991DN7U9nH/tpn4NddytCxU816g9kskkGUrwQrT0nAt3bzFHQ9ZxIDXrKtYRxUZNV2poCvFaa9SHBKGehuHocUyJBD8O30jzuQovj4tXgMyf0kOvsDIUB8I8UY6QEighkzjdeyD1kVuSUAVBf7D8H3Kc0iQIA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=excalamus.com; spf=pass smtp.mailfrom=matt@excalamus.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1680391318; s=zmail; d=excalamus.com; i=matt@excalamus.com; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=FEh7LEnt44ZYTwKlDoJZWwC2sNc4hLv4a3+pBvBAs1s=; b=GgkNv9fI6ToDixz3uvNiilJwUc3FuZqz7eitVtt0B9oN1NeN/gnVSAcijYPTFfrE 89hZptwFt1l3827SA2KgBKAWgDRlmK/l2zwL+U2L5Wwfjz9VcnGZ6ApaQOUaafDX3Wv Sv7OWRVcWz9C5L1maX28Cdudy/LhG3SfcsHWP+u0= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1680391317411418.06948096872225; Sat, 1 Apr 2023 16:21:57 -0700 (PDT) Date: Sat, 01 Apr 2023 19:21:57 -0400 From: Matt To: "Ihor Radchenko" Cc: "Derek Chen-Becker" , "Emacs-orgmode" Message-ID: <1873f20a792.fcfc6bcd54095.5358297633673942037@excalamus.com> In-Reply-To: <87jzyyehwr.fsf@localhost> References: <1872a35eeec.dcff8bea422796.5356383202108217532@excalamus.com> <87pm8rx5lb.fsf@localhost> <1872f04dea1.12a910409155047.1986659191838711991@excalamus.com> <87jzyyehwr.fsf@localhost> 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?) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Received-SPF: pass client-ip=136.143.188.15; envelope-from=matt@excalamus.com; helo=sender4-op-o15.zoho.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, 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=2; s=key1; d=yhetil.org; t=1680391384; a=rsa-sha256; cv=pass; b=cwgqnJL9gLRhciGsIC8AkD0G83+FJl/2BLtJf6imn/6cXLO3MNx4caUwT+tJ5m6M0bsJeB VvGwIS9+i6RFJn6pflMlKFbtWfapeWHw2kz6jN4U6r68zkUDd71lGkXvUZrtEfBpWsrx84 tAeY66HUtp1G/tHcGnSRoxVtj9hIEFiayiscYzPbyRZsZpf9PPhDF2H+k1AI9dMWnCKB9/ kyDaGKy1aZbkwS+n+eTY+f4UYM3VHXHbY+AFsAGjv0hoJYgU7aIjgBZfwg1oMNNh1aCycD TywdJs8XufUo2M1ub+N07q220B4Hf3NARkMXGX6NmB3PKZc96GCyjBknYGpp2Q== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=GgkNv9fI; 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=pass ("zohomail.com:s=zohoarc:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680391384; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=FEh7LEnt44ZYTwKlDoJZWwC2sNc4hLv4a3+pBvBAs1s=; b=SIIXJxXXYy7+ByoSspDE6zr2WckXdAFEDeHaxDq/xYDlqxZZnrFTpGhZydVZuBhxpz9Wo4 Ia80aNqqRzthJNzOMZylsw1BEkNEX1zB/BQGpEYssuUOtISIxXQKw8xcOtHIQ+zxW0Vq0e JazzjzolPZeo1GRB7R2nR6WI8pGGYZR8FPXX+V1R8VKxQ8UqaXp8IXQPRKhI4nMT52Aj5u T/w+FfXU+6G7PSnLTvi1tX0zDTvExR8vhMM8n52XQe+a0SdxAq7IqKsi8BP6Bu1/Rilh18 Snnk9b2BfTZDCgY8lX/kRbXS8CEtu/vRDCEajCKbFJE9OhxGzp7XB2roEjvQqg== X-Migadu-Spam-Score: -6.93 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=GgkNv9fI; 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=pass ("zohomail.com:s=zohoarc:i=1") X-Spam-Score: -6.93 X-Migadu-Queue-Id: 050E19BFE X-TUID: MaDGdINR5vnx ---- On Thu, 30 Mar 2023 04:55:32 -0400 Ihor Radchenko wrote --- > Matt matt@excalamus.com> 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)? Yes. It's not great since sh-mode looks for Korn-based keywords. It does string highlighting and common keywords like 'if', 'exit', and 'param'.