Skip to content

Commit 8569de6

Browse files
author
Jonathan Corbet
committed
docs: kernel-doc: Add "example" and "note" to the magic section types
Lots of kerneldoc entries use "example:" or "note:" as section headers. Until such a time as we can make them use proper markup, make them work as intended. Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent c9de4a8 commit 8569de6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎scripts/kernel-doc‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,8 @@ my $doc_com = '\s*\*\s*';
406406
my $doc_com_body = '\s*\* ?';
407407
my $doc_decl = $doc_com . '(\w+)';
408408
# @params and a strictly limited set of supported section names
409-
my $doc_sect = $doc_com . '\s*(\@\w+|description|context|returns?)\s*:(.*)';
409+
my $doc_sect = $doc_com .
410+
'\s*(\@\w+|description|context|returns?|notes?|examples?)\s*:(.*)';
410411
my $doc_content = $doc_com_body . '(.*)';
411412
my $doc_block = $doc_com . 'DOC:\s*(.*)?';
412413
my $doc_inline_start = '^\s*/\*\*\s*$';

0 commit comments

Comments
 (0)