Re: [PATCH v2 07/28] docs: kdoc: move C Tokenizer to c_lex module

Jonathan Corbet
2026-03-16T23:31:00Z

Mauro Carvalho Chehab <mchehab+huawei@kernel.org> writes:

> Place the C tokenizer on a different module.
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
> ---
> tools/lib/python/kdoc/c_lex.py | 239 +++++++++++++++++++++++++++
> tools/lib/python/kdoc/kdoc_parser.py | 3 +-
> tools/lib/python/kdoc/kdoc_re.py | 233 --------------------------
> 3 files changed, 241 insertions(+), 234 deletions(-)
> create mode 100644 tools/lib/python/kdoc/c_lex.py

One has to ask...why not just put it in its own file in the first place?

Thanks,

jon