mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
c9de4a82c8
commit
8569de68e7
1 changed files with 2 additions and 1 deletions
|
@ -406,7 +406,8 @@ my $doc_com = '\s*\*\s*';
|
||||||
my $doc_com_body = '\s*\* ?';
|
my $doc_com_body = '\s*\* ?';
|
||||||
my $doc_decl = $doc_com . '(\w+)';
|
my $doc_decl = $doc_com . '(\w+)';
|
||||||
# @params and a strictly limited set of supported section names
|
# @params and a strictly limited set of supported section names
|
||||||
my $doc_sect = $doc_com . '\s*(\@\w+|description|context|returns?)\s*:(.*)';
|
my $doc_sect = $doc_com .
|
||||||
|
'\s*(\@\w+|description|context|returns?|notes?|examples?)\s*:(.*)';
|
||||||
my $doc_content = $doc_com_body . '(.*)';
|
my $doc_content = $doc_com_body . '(.*)';
|
||||||
my $doc_block = $doc_com . 'DOC:\s*(.*)?';
|
my $doc_block = $doc_com . 'DOC:\s*(.*)?';
|
||||||
my $doc_inline_start = '^\s*/\*\*\s*$';
|
my $doc_inline_start = '^\s*/\*\*\s*$';
|
||||||
|
|
Loading…
Add table
Reference in a new issue