docs: kernel-doc: properly recognize parameter lines with colons
authorJonathan Corbet <corbet@lwn.net>
Fri, 26 Mar 2021 19:16:35 +0000 (13:16 -0600)
committerJonathan Corbet <corbet@lwn.net>
Fri, 26 Mar 2021 19:16:35 +0000 (13:16 -0600)
commit212209cff89fe497bc47abcd017aa95e4e8a5196
tree02b814c3d58113f66edbe9b6d1080c1e52c840e7
parent8d295fbad687a61eaa0cf14958c284a3ddbf2173
docs: kernel-doc: properly recognize parameter lines with colons

The previous attempt to properly handle literal blocks broke parsing of
parameter lines containing colons; fix it by tweaking the regex to
specifically exclude the "::" pattern while accepting lines containing
colons in general.  Add a little documentation to the regex while in the
neighborhood.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: 8d295fbad687 ("kernel-doc: better handle '::' sequences")
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/kernel-doc