]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
docs: kdoc: replace NestedMatch with CMatch
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 17 Mar 2026 18:09:34 +0000 (19:09 +0100)
committerJonathan Corbet <corbet@lwn.net>
Sun, 22 Mar 2026 21:02:29 +0000 (15:02 -0600)
commit600079fdcf46fafe15b4ccd62804d66e05309cc6
tree133850fc2e6b31fce2bb53f2427f490bdf9ec3f0
parentc22aa12c766f087d197fab7bda81554e4c1c7a0c
docs: kdoc: replace NestedMatch with CMatch

Our previous approach to solve nested structs were to use
NestedMatch. It works well, but adding support to parse delimiters
is very complex.

Instead, use CMatch, which uses a C tokenizer, making the code more
reliable and simpler.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <900bff66f8093402999f9fe055fbfa3fa33a8d8b.1773770483.git.mchehab+huawei@kernel.org>
tools/lib/python/kdoc/kdoc_parser.py
tools/lib/python/kdoc/xforms_lists.py