Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.13182.1796138604724049117 for ; Tue, 01 Dec 2026 07:23:24 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=VyHrMLmK; spf=pass (domain: gmail.com, ip: 209.85.167.176, mailfrom: twoerner@gmail.com) Received: by mail-oi1-f176.google.com with SMTP id 5614622812f47-53dbe9b8d6eso8364808b6e.1 for ; Tue, 01 Dec 2026 07:23:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796138604; x=1796743404; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=AhiKRAMDA0o4yF44iyxmwiwBNKtlmf064jDkCATlblQ=; b=VyHrMLmKf1wVT7ZL39sB264Q0oiFGZbBMFzE5GMyqxcYVFS6XKDVwh2krJjHf1E/5t YgvC16idPGAIoYPSF2Nsz3dyRVJ2DF0PGjiKufuxaJGLnxb4gAQr/XO9M1LEjaylSW36 +UJsK+kmgk3NiRsjssfSo8ATzlZXGH/Qo/Ar2JiUK9ABziM3pfmVM4p30HIs+kFBBF0y RX6grYNXMLq0E/8HJROZAfTwWpOyvcUtEEeFcwopp6Dm/usDej38Tzxcxa70KrQ1Po0I RNec8td64lE0LnEces9WZBj9BnQ6Qt/0/N0EfNdvwPIIutbJrDcenvKkTnKrIuKrp6tF yFrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796138604; x=1796743404; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=AhiKRAMDA0o4yF44iyxmwiwBNKtlmf064jDkCATlblQ=; b=ejrV0U7B/kHa3kJIVXdcOGum/1A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bzyEVzddpnOMJS8D7S6NvegTPZL9wyPaF3S26XmEvyluAhA0USKjWfnAix15Qpu BLpBT5j6gfEhc/dc9 X-Received: by 2002:a05:6808:2447:b0:4b8:4703:db90 with SMTP id 5614622812f47-5797cabc79emr29571150b6e.25.1796138603797; Tue, 01 Dec 2026 07:23:23 -0800 (PST) Return-Path: Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id 5614622812f47-57a31929223sm27818249b6e.1.2026.12.01.07.23.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 07:23:22 -0800 (PST) From: Trevor Woerner To: docs@lists.yoctoproject.org Subject: [PATCH 13/16] docs: show the examples the BitBake lexer misreads as text Date: Tue, 1 Dec 2026 10:22:46 -0500 Message-ID: <20261201152251.2742634-14-twoerner@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20261201152251.2742634-1-twoerner@gmail.com> References: <20261201152251.2742634-1-twoerner@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 15:23:31 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10872 Content-Type: text/plain; charset="utf-8" Pygments' BitBake lexer reports errors in a few valid BitBake examples, which would fail the build once BitBake is the default highlight language. Show them as text, each with a comment saying why, so they can be switched back once the lexer reads them. AI-Generated: codex/claude-opus 5.5 (xhigh) Signed-off-by: Trevor Woerner --- documentation/ref-manual/classes.rst | 6 +++++- documentation/ref-manual/variables.rst | 30 +++++++++++++++++++++----- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst index 130cbea321e1..49c48b5e5990 100644 --- a/documentation/ref-manual/classes.rst +++ b/documentation/ref-manual/classes.rst @@ -679,7 +679,11 @@ See :oe_git:`devicetree.bbclass sources for further variables controlling this class. Here is an excerpt of an example ``recipes-kernel/linux/devicetree-acme.bb`` -recipe inheriting this class:: +recipe inheriting this class: + +.. Shown as text: the Pygments BitBake lexer misreads this block. + +.. code-block:: text inherit devicetree COMPATIBLE_MACHINE = "^mymachine$" diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 2a14a663bf51..9e956a42f0f0 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst @@ -1690,7 +1690,11 @@ system and gives an overview of their function and contents. with the current machine. If one wants to have a recipe only available for some architectures - (here ``aarch64`` and ``mips64``), the following can be used:: + (here ``aarch64`` and ``mips64``), the following can be used: + + .. Shown as text: the Pygments BitBake lexer misreads this block. + + .. code-block:: text COMPATIBLE_MACHINE = "^$" COMPATIBLE_MACHINE:arch64 = "^(aarch64)$" @@ -1705,7 +1709,11 @@ system and gives an overview of their function and contents. The third is for matching all machines whose :term:`MACHINEOVERRIDES` contains one override which is exactly ``mips64``. - The same could be achieved with:: + The same could be achieved with: + + .. Shown as text: the Pygments BitBake lexer misreads this block. + + .. code-block:: text COMPATIBLE_MACHINE = "^(aarch64|mips64)$" @@ -9728,7 +9736,11 @@ system and gives an overview of their function and contents. By default this variable is empty, meaning no files are excluded. - Example usage:: + Example usage: + + .. Shown as text: the Pygments BitBake lexer misreads this block. + + .. code-block:: text SPDX_FILE_EXCLUDE_PATTERNS = "\\.patch$ \\.diff$ /test/ \\.pyc$ \\.o$" @@ -11580,7 +11592,11 @@ system and gives an overview of their function and contents. are not conflicting and that they are supported. The BitBake configuration file (``meta/conf/bitbake.conf``) defines - :term:`TUNE_FEATURES` as follows:: + :term:`TUNE_FEATURES` as follows: + + .. Shown as text: the Pygments BitBake lexer misreads this block. + + .. code-block:: text TUNE_FEATURES ??= "${TUNE_FEATURES:tune-${DEFAULTTUNE}}" @@ -12574,7 +12590,11 @@ system and gives an overview of their function and contents. For recipes with dot-separated versions, inherit the :ref:`ref-classes-upstream-stable-release-point` class to generate this - variable automatically. For other versioning schemes, set it directly:: + variable automatically. For other versioning schemes, set it directly: + + .. Shown as text: the Pygments BitBake lexer misreads this block. + + .. code-block:: text UPSTREAM_STABLE_RELEASE_REGEX = "^10\.2p\d+$" -- 2.50.0.173.g8b6f19ccfc3a