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

From: Jonathan Corbet

Date: Mon Mar 16 2026 - 19:31:56 EST


Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx> writes:

> Place the C tokenizer on a different module.
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>
> ---
> 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