From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 EO99MhAjI2Q34QAASxT56A (envelope-from ) for ; Tue, 28 Mar 2023 19:25:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8p5fMhAjI2SPLAAAauVa8A (envelope-from ) for ; Tue, 28 Mar 2023 19:25:36 +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 1207125CE2 for ; Tue, 28 Mar 2023 19:25:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phD43-0001mv-Tp; Tue, 28 Mar 2023 13:24:55 -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 1phD42-0001mi-6A for Emacs-orgmode@gnu.org; Tue, 28 Mar 2023 13:24:54 -0400 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phD40-0008O7-0h for Emacs-orgmode@gnu.org; Tue, 28 Mar 2023 13:24:53 -0400 Received: by mail-qk1-x735.google.com with SMTP id h8so2860826qko.8 for ; Tue, 28 Mar 2023 10:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chen-becker.org; s=google; t=1680024290; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=w0NXw1c2FnS4j6P2qBH5yobef9Ef5NS4gKYGb7IsZGI=; b=Ghs+MrGO5X0qRtJXmvgiGhcrrZShh5SgcfSypjyOLd6bUruZByDlQLfLKzG7RMJ1W9 WndAJd6QNkjn1UNljmfvqVvIDFBLSQkV7oxbUAgKHMfz48AZoj/kd56KaeO7YxD6F4Op HcxoUG4JYsWppafZmL8FUhzDT/3rPfUbOurf93deQUO4oazJlsyymyvoiJ8pU/GCEI64 OMT4cerajVtgb3qoEgm4H9WVx1wTV+ORyDTQbA90AF8er+pVia111zrcX8N/cj5L4Mb2 H6NbYc6UPFD6hNvU1OdEPzBak/ZM0H/JRYnUR5lj9hmyEB36H5dhPIvkOetukImUYw9/ sraw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680024290; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=w0NXw1c2FnS4j6P2qBH5yobef9Ef5NS4gKYGb7IsZGI=; b=RHi5EAd4iHt4OJY2381VZwghsWo6vZXcftKN0Ikc/Dp4hhXHmxRSE3pemITtwr+nVE sqOhPuxhzJztaPWHit7AXLUFeGDMlUdnaTLzCHjS3pDbsTUK354NQL8u6Wqg/3wD2j17 YbUA6OcgKQsO+FlteDBWRVs4KpvRrkorLZB1Yrr+4urWLsEP/oKOqb6lR8mlIUctZQ+T NB0Uv9Hi6qKvX9g8OnxxSPemCJvGzbNnSggp6UJjXCdPCqlRdvcjxplb0T5++UvS29Sf p367l8ylO6p4SV5yMiXUpEk9AZ5CMOPBfRTfMtxckgpPwRq6FoH0givF20WvqZ/+qTsh FF/g== X-Gm-Message-State: AO0yUKVTtm/HWvQh+H4bSw/td930xBQmhwdBoY21vA5xiqnAg4/fsh7x 1frySkBNljDx4+SzNlGIieIfA4ec5NwoPG6y1IAHSxiKF6yvrhnjZtg= X-Google-Smtp-Source: AK7set/3M5jRWWRsjdOHjEHE+k7/OWs77nEddAVBR+uJwPsvQcxYE+FmUryxQXJuFGgFNwYH1Uj2WBLFUKZxKeiUqkg= X-Received: by 2002:a05:620a:2148:b0:71f:b8ba:ff4c with SMTP id m8-20020a05620a214800b0071fb8baff4cmr4051860qkm.10.1680024289893; Tue, 28 Mar 2023 10:24:49 -0700 (PDT) MIME-Version: 1.0 From: Derek Chen-Becker Date: Tue, 28 Mar 2023 11:24:39 -0600 Message-ID: Subject: Font lock for org-babel shell scripts? To: Emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="00000000000003778405f7f92396" Received-SPF: pass client-ip=2607:f8b0:4864:20::735; envelope-from=derek@chen-becker.org; helo=mail-qk1-x735.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=1680024336; a=rsa-sha256; cv=none; b=NnQlNtmqFlDloBbDh2STmH2Iy/kty4ZvgubKddzojbj2wcJ8fdCOM44YME4OHVVprmGTlV L5xM8xnxwLQGUnvB6LmcK3dkwTTwlOK+OiZ4/0WN8/0zrE4zkqbfl1SLgWUJXiBWd3dE0w 2dUBszllQ1aFpa81cmtNdHZUJJ4a1lZjV7STWwsDbI0v568b++j+kGJixvxOTeNigV+MCJ nClwG/ck/LxrW4VnBWQnCxSz+7mk6JR9zpRIdGT8q+41fN9Wqe6qoZfUzlb79Lg9Pm6p59 EGOfAjoh9OSTDGTv8jeQwF4qIajQZnbpMLbLOKN/BfqGELduXK8cDlXQwxmIjw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=chen-becker.org header.s=google header.b=Ghs+MrGO; 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=1680024336; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=w0NXw1c2FnS4j6P2qBH5yobef9Ef5NS4gKYGb7IsZGI=; b=HWRwmRVFmwTEOCGaGd18+ZDsJraHjTCaZA0y7+A79vScYp5KiSiaTCZ5K8WgdiHy+gVdzH Z2oACMNv5n/k0AFupppN5FMq+EZ9xhHxjdv3OlCmlFpU1893BkQQgNMAuXA7pfNhPBR3TG xJSkogr7Tcug2s/AnK77n3kjK60sctOOcj9NkS3w3Zi76bFj1nz0LRYfA9PJIrjbpznJXr fY442i3X9Hwna16aat9OfmiKf12HU0alExl1VR3Nkr4tFZ7Cch1Qm4Z652ffDWBxOmnx9M hYxtu/SByRKNJytEJTctfyckqiD5YMg5x+BW6pLR/YIWIn4TM2rQE0IdZKtYjA== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=chen-becker.org header.s=google header.b=Ghs+MrGO; 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: scn1.migadu.com X-Migadu-Spam-Score: -1.23 X-Spam-Score: -1.23 X-Migadu-Queue-Id: 1207125CE2 X-TUID: PkdeJBLFOMXN --00000000000003778405f7f92396 Content-Type: text/plain; charset="UTF-8" Hi, I'm trying to figure out whether there's a bug or just a misconfiguration on my end with font lock for org-babel shell source blocks. If I run emacs 28.2 (with -q) and open the following org file, I can evaluate both source blocks but only the "bash" block has syntax highlighting. I've confirmed that opening a zsh script (e.g. with a zsh shebang) highlights correctly. If this list isn't the right place to ask about this issue, does someone know where I could look for help? Thanks, Derek #+begin_src bash if [ -z $TEST ]; then echo Good fi #+end_src #+begin_src zsh if [ -z $TEST ]; then echo Good fi #+end_src # Local Variables: # org-babel-load-languages: ((shell . t)) # End: -- +---------------------------------------------------------------+ | Derek Chen-Becker | | GPG Key available at https://keybase.io/dchenbecker and | | https://pgp.mit.edu/pks/lookup?search=derek%40chen-becker.org | | Fngrprnt: EB8A 6480 F0A3 C8EB C1E7 7F42 AFC5 AFEE 96E4 6ACC | +---------------------------------------------------------------+ --00000000000003778405f7f92396 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

<= div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif= ;font-size:small">I'm trying to figure out whether there's a bug or= just a misconfiguration on my end with font lock for org-babel shell sourc= e blocks. If I run emacs 28.2 (with -q) and open the following org file, I = can evaluate both source blocks but only the "bash" block has syn= tax highlighting. I've confirmed that opening a zsh script (e.g. with a= zsh shebang) highlights correctly. If this list isn't the right place = to ask about this issue, does someone know where I could look for help?

Thanks,

Derek

#+begin_src bash
=C2=A0 if [ -z $TEST ]; then
= =C2=A0 =C2=A0 =C2=A0 echo Good
=C2=A0 fi
#+end_src

#+begin_src= zsh
=C2=A0 if [ -z $TEST ]; then
=C2=A0 =C2=A0 =C2=A0 echo Good
= =C2=A0 fi
#+end_src

# Local Variables:
# org-babel-load-langua= ges: ((shell . t))
# End:



--
+------------------------------------------------= ---------------+
| Der= ek 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 AF= EE 96E4 6ACC=C2=A0 |
+= ---------------------------------------------------------------+

--00000000000003778405f7f92396--