Skip to content

Commit fe7bc49

Browse files
mchehabJonathan Corbet
authored andcommitted
scripts: kernel-doc: support in-line comments on nested structs/unions
The parser at kernel-doc rejects names with dots in the middle. Fix it, in order to support nested structs/unions. Tested-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent d2253a4 commit fe7bc49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/kernel-doc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ my $doc_sect = $doc_com .
363363
my $doc_content = $doc_com_body . '(.*)';
364364
my $doc_block = $doc_com . 'DOC:\s*(.*)?';
365365
my $doc_inline_start = '^\s*/\*\*\s*$';
366-
my $doc_inline_sect = '\s*\*\s*(@[\w\s]+):(.*)';
366+
my $doc_inline_sect = '\s*\*\s*(@\s*[\w][\w\.]*\s*):(.*)';
367367
my $doc_inline_end = '^\s*\*/\s*$';
368368
my $doc_inline_oneline = '^\s*/\*\*\s*(@[\w\s]+):\s*(.*)\s*\*/\s*$';
369369
my $export_symbol = '^\s*EXPORT_SYMBOL(_GPL)?\s*\(\s*(\w+)\s*\)\s*;';

0 commit comments

Comments
 (0)