[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87cyfp3ltp.fsf@trenco.lwn.net>
Date: Mon, 10 Feb 2025 07:40:02 -0700
From: Jonathan Corbet <corbet@....net>
To: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
Cc: Linux Doc Mailing List <linux-doc@...r.kernel.org>, Greg Kroah-Hartman
<gregkh@...uxfoundation.org>, linux-kernel@...r.kernel.org
Subject: Re: [RFC v2 18/38] docs: sphinx/kernel_abi: use AbiParser directly
Mauro Carvalho Chehab <mchehab+huawei@...nel.org> writes:
> I took a look on Markus work: it was licensed under GPL 3.0 and it was
> written in 2016. There were several changes on kerneldoc since them,
> including the addition of a regex that it is not compatible with
> Python re[1]:
>
> $members =~ s/\bSTRUCT_GROUP(\(((?:(?>[^)(]+)|(?1))*)\))[^;]*;/$2/gos;
>
> This one use:
>
> - recursive patterns: ?1
> - atomic grouping (?>...)
>
> Also, it is hard to map what he does with the existing script. I'm
> opting to write a new script from scratch.
That's fine, I just wanted to be sure you'd had a chance to look at
it...
> Another option would be to re-implement such regexes without using
> such advanced patterns.
Seems like a preferred option if that can be done. Banging one's head
against all those regexes is often the hardest part of dealing with that
script; anything that makes it simpler is welcome.
Thanks,
jon
Powered by blists - more mailing lists