Re: [PATCH 08/18] docs: kdoc_parser: fix parser to support multi-word types
From: Jonathan Corbet
Date: Tue Mar 03 2026 - 15:25:10 EST
Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx> writes:
> Heh, if we start using a code like the tokenizer I'm experimenting
> here:
>
> https://lore.kernel.org/linux-doc/20260303155310.5235b367@localhost/
>
> we could probably get rid of regexes in the future, using instead
> a loop that would be picking "ID" tokens, e.g. basically we would
> have something similar to this completely untested code snippet:
...which has some appeal, but I will confess to being leery of another
massive kernel-doc thrash; it would be nice if things settled for a bit.
One can always dream :)
jon