From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yHo5M9qcWmGn4gAAgWs5BA (envelope-from ) for ; Mon, 04 Oct 2021 08:19:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CO7GLtqcWmENFAAAbx9fmQ (envelope-from ) for ; Mon, 04 Oct 2021 06:19:06 +0000 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 317C71FCA1 for ; Mon, 4 Oct 2021 08:19:06 +0200 (CEST) Received: from localhost ([::1]:46078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXHJZ-0007LK-BG for larch@yhetil.org; Mon, 04 Oct 2021 02:19:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXHJ1-0007KD-5N for emacs-orgmode@gnu.org; Mon, 04 Oct 2021 02:18:31 -0400 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:46630) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXHIz-0003dA-CU for emacs-orgmode@gnu.org; Mon, 04 Oct 2021 02:18:30 -0400 Received: by mail-lf1-x135.google.com with SMTP id i24so18688298lfj.13 for ; Sun, 03 Oct 2021 23:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=bsGyls4BaSUVt6BWRB5tc0O1cQh0GU5SEKtggrHNWs8=; b=UpCdIXzYN0GKgCNCNAs2KdCKorKtX9fBDQOQSPz6dLndXrpIOtqm2whr5o0xpVSpJC 9bTBlownwIdy4UG6cgCgJ0mEtofakR6OAVKFr9FP698Gk3U/LN04qJpV5JLiZ7oXeRDQ aWNuCxVP//62jRuUu/ZRnBn5brEZOIv8ViXutMKKCGzvi118PxvsR+6+HeeVMY6NWLvc HR/4o9Vya5u42iHGMwgYB+F1ImZNWoK6HR1Xxmfyw29pVS466w/9RhzeRjFkVc7D9LLm +eZIy76IaZ20Tu92uKQiAcqAIjT49AE3hbrm8RSLgD5F1WrWkFJD6wKteQFFv5IeGHvn rE5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=bsGyls4BaSUVt6BWRB5tc0O1cQh0GU5SEKtggrHNWs8=; b=K9qQZxuao7WzK0KPthmARh6Dv2+vlHJMs0BVr/tftJq8dYIu2CjZwXSIZwLJp646dd 3s2dTCNonJYCrRruG3e50UdLBaMRLaSV8f0Jz/pJF0WOIyp08s9b7k2ERxdVuqJG0AIW Drvpi1xmQud8dfln0o5Gki2c+oTOqV/lx1pvP4FaRvRA7Y2GHuA9aZzCskqQS/G8F35S i9S8qY4Enjx1WyU/FT4ktSrTVFR/ZwLpha4/+IkX+e6GBKTrVFnw72y5t0FjtiDh32lk afsoL44TDUlDDso1RJEFVPHYTXAa5xqgy3WiQUJQQIK490tDOWnaOAbRSi/viYw5JrZT w/YA== X-Gm-Message-State: AOAM533IrjJElfx4dexYigtwziqCYSjoTxTqNhv6Lh3iWRT+gcaYTNVV pXKMgav7oeOVmTNVwC5d1ulfOxdKrA5Nz3dAOn0= X-Google-Smtp-Source: ABdhPJxgzQTsp+H6YU4bI52TEFBwCLxd2lUBrgJa/aHRK0qAStO4VATkLIPbO/BQtP4Ihiu/UiQH0w== X-Received: by 2002:a05:6512:250:: with SMTP id b16mr12564629lfo.658.1633328307648; Sun, 03 Oct 2021 23:18:27 -0700 (PDT) Received: from localhost ([158.255.2.9]) by smtp.gmail.com with ESMTPSA id q6sm1311921lfg.188.2021.10.03.23.18.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 23:18:27 -0700 (PDT) From: Ihor Radchenko To: Tom Gillespie Subject: Re: Org lint and named source blocks In-Reply-To: References: <87h7ee5q8u.fsf@gmail.com> <87o88mqd6o.fsf@localhost> Date: Mon, 04 Oct 2021 14:19:45 +0800 Message-ID: <87a6jpcnwe.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=yantar92@gmail.com; helo=mail-lf1-x135.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dominik Schrempf , Emacs Org Mode Mailing List Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633328346; 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=bsGyls4BaSUVt6BWRB5tc0O1cQh0GU5SEKtggrHNWs8=; b=QsRJn0HziJX09hspf8uWcLDQg57zDktTyJRZ+KEwf0Xm1pbNdq3U/1gjwPn/cnbScFuaBM FaSQE/wZ7LcbcHWNPrZLSf+bQHrEaa5cAsEDaEml0MpflG3Nmo/6ieVNmMri0RM/Zqb4B+ 2w0p3stwo8fuTZzA71azOkIA1UZG326Kj43h9ECQWEes2LHKLxuoMnJ9YBHDcpMvNqSsBk 1SC8G053CSk9lVCm1Mc9eRV1pjYCuutuenkbM928qINsLZNXYZJJj14x42tA1zu8mjeRFB kCUm1j8r0v6L1x12wRT3USCGTQAbLR4nx8zDSddaKnYNujd3GIS8GFyNhb47uQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633328346; a=rsa-sha256; cv=none; b=H3jRt7saysR1wEIr/jx67iIzVZ4zztWGtDPTneD9/9JqevL2gsUmx6M8rDCjhDqiWdVTgf i+EjCTmPXE3o4zWtFjEgvQNSQ7gytewEt9sYmol5ABXATz3hQDRGzkadJUzhHTGedUDw5o PKIGImhEshC6UE4iiyIt0UkV5YGU49VwBMVCtKqPl14aFYqC+luNBugMsN+niM5XFYJjvP IpFEiPTaeTCUaJZ3P/wweHPYcnQNOKLsAJe/u+b1Eo28ijHocDlV/QO64JQgUbYB904ykl gzSksIqxpALh8ngWXf8/YtNSoManml/qAGPaQuraUENuJZIzZ3DG0FIHyeNIhQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UpCdIXzY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UpCdIXzY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 317C71FCA1 X-Spam-Score: -2.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: 19qer6H4P0ES Tom Gillespie writes: >> Should we allow syntax like #+KEYWORD:value to be correct or do we >> require a whitespace/space after colon all the time? > > The spec as written is ambiguous/silent on this issue. In my work on > laundry tokenizer and grammar I have found keyword syntax to be a > thorny issue, and I strongly suggest that for the time being we either > make no ruling on this or we state that the colon that ends the > keyword should be followed by a space as a precautionary measure. > The safe thing to do is to always require whitespace after the colon > because it guarantees correct interpretation. By the way, wouldn't it be better to use tree-sitter rather than something else for the format grammar? At least, there is some work on integrating tree-sitter into Emacs core [1,2]. [1] https://lists.gnu.org/archive/html/emacs-devel/2021-08/msg00268.html [2] https://archive.casouri.cat/note/2021/emacs-tree-sitter/#Feedback Best, Ihor