Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp826667pxu; Wed, 7 Oct 2020 17:46:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLDS+YnuWGm414sogibbzUOFhAhsYB7Bm00V6Kq3363FyCmx51n8BstlSfOSKzUhZgeWkk X-Received: by 2002:aa7:d948:: with SMTP id l8mr6527345eds.159.1602117988720; Wed, 07 Oct 2020 17:46:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602117988; cv=none; d=google.com; s=arc-20160816; b=kX6GMrfhH06PbCmRJWlaUxzElS6CBF9F8u8TUKrmvsSr70bVNzfG0CYfhw3ErK7hai 5m3Crv1MGVCrTeBwEc/CVM2AdTTF1+yDeO4O2HrzsUA6v/Marb81I+rbR9N6fm9LlLqM 2oN9meWqvNbuqkP1L7KmasDFHWQOFriTQ3/zLx8kA0CNY6RbuvteREkKcyH6CD3UUutG Ur3azun9jQYyyZvBWyLjVQv/b4sJWCcaeStWp2M9dC/njORh5r2McOMVu3A9A2yenU0N X4lFMmHK6fqgvbs8dN38qbKXYx/oHtd50XR2F9Hw+egPRZ/RIFbc/FY+aor+kEgejaEH WJSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=amvhMCFH/JEIzDR6sopUyHJKq5Cz3j6B99MCLm4PLCs=; b=mGAo9C4NZsle+LXYBcJCTCXjISKkz7WIlq6NgEVZc0/2P5QxfEo8eftF1nzrbXhUsT Xc7sYM6L1ZYCM5Olhcq3XRE8SZLOKrRfvbLiCo5hJQrRCOHuTLGhq8X5UZujP4qhTW8S aGDhNegLdTd8RoOzYPm3wpEJzfSZJXMUMZ92vyacJQIz0B2CujtYvbTmJw55OlilMRJL vK276Fs427ATLhuOQHZ7UJTng4wsaLfydGshVoyprRGtueJ1WDeb0XZ+Blc7tpDOCjiN lodYPCb8jrul8jhVCoIbr2UBs5BuNi86QBt3JoEcqsoVwESupVGTnZtrJVJr+M11eRc0 DBig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=NzEuf1QY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ak12si2620458ejc.728.2020.10.07.17.46.05; Wed, 07 Oct 2020 17:46:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=NzEuf1QY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728209AbgJGXkh (ORCPT + 99 others); Wed, 7 Oct 2020 19:40:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726408AbgJGXkh (ORCPT ); Wed, 7 Oct 2020 19:40:37 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57C57C061755; Wed, 7 Oct 2020 16:40:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=amvhMCFH/JEIzDR6sopUyHJKq5Cz3j6B99MCLm4PLCs=; b=NzEuf1QYXkIppO+WmF/yTipZAi HKPLikcTWXOLOg3cY1DMoHSipFfv8e1TMgGGqR/p3AqSYcjqk2d4bpKV7sNG2fnmRQoNsJcHhNK3z XCU77xWWMp6pN4hjUPUfHZiU+aP87ljxdgtQHdk64r8TT/d/3wxW1/Y26PNXgqzRW1kfHUqMBBMqK ecuTASwF8BGrNN7v+H2f2buhDg9n3mPT5TFJbVTgcig57nvuoRibQ1j/xvQhHzpnw+KN3fCBGOP5o c+tKKwLVmlGz6HjZ6HJyS1ddzOdYrTpnhBboFY3JHRPZIfz0ggFb4tbmxkWt4hHclq10pEZ+8YZBo wrdmrN9Q==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQJ2n-0004oB-20; Wed, 07 Oct 2020 23:40:25 +0000 Date: Thu, 8 Oct 2020 00:40:24 +0100 From: Matthew Wilcox To: =?iso-8859-1?Q?N=EDcolas_F=2E_R=2E_A=2E?= Prado Cc: Jonathan Corbet , Mauro Carvalho Chehab , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, lkcamp@lists.libreplanetbr.org, andrealmeid@collabora.com Subject: Re: [PATCH] docs: Make automarkup ready for Sphinx 3.1+ Message-ID: <20201007234024.GY20115@casper.infradead.org> References: <20201007231214.326456-1-nfraprado@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201007231214.326456-1-nfraprado@protonmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 07, 2020 at 11:12:25PM +0000, N?colas F. R. A. Prado wrote: > While Sphinx 2 used a single c:type role for struct, union, enum and > typedef, Sphinx 3 uses a specific role for each one. > To keep backward compatibility, detect the Sphinx version and use the > correct roles for that version. > > Also, Sphinx 3 is more strict with its C domain and generated warnings, > exposing issues in the parsing. > To fix the warnings, make the C regexes use ASCII, ensure the > expressions only match the beginning of words and skip trying to > cross-reference C reserved words. Thank you for doing this! I have a feature request ... could you automarkup NULL as being :c:macro? Or maybe just anything matching \<[[:upper:]_[:digit:]]*\> (i may have my regex syntax confused ... a word composed of any arrangement of upper-case, digits and underscores.)