]> git.ipfire.org Git - thirdparty/linux.git/commit
docs: automarkup.py: Skip common English words as C identifiers
authorwheatfox <wheatfox17@icloud.com>
Sun, 25 Jan 2026 12:44:50 +0000 (20:44 +0800)
committerJonathan Corbet <corbet@lwn.net>
Tue, 27 Jan 2026 17:35:57 +0000 (10:35 -0700)
commit6b8edfcd661b569f077cc1ea1f7463ec38547779
treee442d7332b8fab8890d52ef25b1631646dfbe2d0
parenta592a36e49372172d7c7551ec19ed18184c935e1
docs: automarkup.py: Skip common English words as C identifiers

The automarkup extension incorrectly recognizes common English words
as C identifiers when they follow struct/union/enum/typedef keywords,
causing normal text like "... (a simple) struct that" (in `workqueue.rst`)
to be rendered as code blocks.

This patch adds Skipidentifiers list to filter out these words.

Signed-off-by: Yulong Han <wheatfox17@icloud.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260125124450.2005006-1-wheatfox17@icloud.com>
Documentation/sphinx/automarkup.py