docs: kdoc: split the processing of the two remaining inline states
authorJonathan Corbet <corbet@lwn.net>
Fri, 27 Jun 2025 18:23:05 +0000 (12:23 -0600)
committerJonathan Corbet <corbet@lwn.net>
Fri, 27 Jun 2025 18:23:05 +0000 (12:23 -0600)
commitc7eedb09417e4372183bf1843676d2008da340d5
tree3b3b26d6833f3845c7a879edefec4d48489ef1d0
parent096f73ab01b95aaeaa7f678c56257d2e4c8490d3
docs: kdoc: split the processing of the two remaining inline states

Now that "inline_*" are just ordinary parser states, split them into two
separate functions, getting rid of some nested conditional logic.

The original process_inline() would simply ignore lines that didn't match
any of the regexes (those lacking the initial " * " marker).  I have
preserved that behavior, but we should perhaps emit a warning instead.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/lib/kdoc/kdoc_parser.py