Re: [RFC v4] scripts: kernel-doc: reduce repeated regex expressions into variables

From
Jonathan Corbet <corbet@lwn.net>
Date
2021-05-17 17:49:12
Also in
linux-kernel-mentees, lkml
Reply to
Aditya Srivastava, 2021-05-14
Aditya Srivastava [off-list ref] writes:
There are some regex expressions in the kernel-doc script, which are used
repeatedly in the script.

Reduce such expressions into variables, which can be used everywhere.

A quick manual check found that no errors and warnings were added/removed
in this process.

Suggested-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Aditya Srivastava <redacted>
---
Changes in v4:
- Fix htmldocs warning at function parsing, involving repeated $type2 identifiers capture
- Re-tested against all files in kernel tree
Applied, thanks for stickint with this.

jon
Thread (17 messages) 17 messages, 4 authors, last reply 2021-05-17
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help