kernel-doc (6d5244c72ec9cfff1390152ef7cc8540af0f2748) | kernel-doc (8569de68e79e94cce6709831edd94accb6942ade) |
---|---|
1#!/usr/bin/perl -w 2 3use strict; 4 5## Copyright (c) 1998 Michael Zucchi, All Rights Reserved ## 6## Copyright (C) 2000, 1 Tim Waugh <twaugh@redhat.com> ## 7## Copyright (C) 2001 Simon Huggins ## 8## Copyright (C) 2005-2012 Randy Dunlap ## --- 392 unchanged lines hidden (view full) --- 401my $decl_type; 402 403my $doc_start = '^/\*\*\s*$'; # Allow whitespace at end of comment start. 404my $doc_end = '\*/'; 405my $doc_com = '\s*\*\s*'; 406my $doc_com_body = '\s*\* ?'; 407my $doc_decl = $doc_com . '(\w+)'; 408# @params and a strictly limited set of supported section names | 1#!/usr/bin/perl -w 2 3use strict; 4 5## Copyright (c) 1998 Michael Zucchi, All Rights Reserved ## 6## Copyright (C) 2000, 1 Tim Waugh <twaugh@redhat.com> ## 7## Copyright (C) 2001 Simon Huggins ## 8## Copyright (C) 2005-2012 Randy Dunlap ## --- 392 unchanged lines hidden (view full) --- 401my $decl_type; 402 403my $doc_start = '^/\*\*\s*$'; # Allow whitespace at end of comment start. 404my $doc_end = '\*/'; 405my $doc_com = '\s*\*\s*'; 406my $doc_com_body = '\s*\* ?'; 407my $doc_decl = $doc_com . '(\w+)'; 408# @params and a strictly limited set of supported section names |
409my $doc_sect = $doc_com . '\s*(\@\w+|description|context|returns?)\s*:(.*)'; | 409my $doc_sect = $doc_com . 410 '\s*(\@\w+|description|context|returns?|notes?|examples?)\s*:(.*)'; |
410my $doc_content = $doc_com_body . '(.*)'; 411my $doc_block = $doc_com . 'DOC:\s*(.*)?'; 412my $doc_inline_start = '^\s*/\*\*\s*$'; 413my $doc_inline_sect = '\s*\*\s*(@[\w\s]+):(.*)'; 414my $doc_inline_end = '^\s*\*/\s*$'; 415my $export_symbol = '^\s*EXPORT_SYMBOL(_GPL)?\s*\(\s*(\w+)\s*\)\s*;'; 416 417my %parameterdescs; --- 2668 unchanged lines hidden --- | 411my $doc_content = $doc_com_body . '(.*)'; 412my $doc_block = $doc_com . 'DOC:\s*(.*)?'; 413my $doc_inline_start = '^\s*/\*\*\s*$'; 414my $doc_inline_sect = '\s*\*\s*(@[\w\s]+):(.*)'; 415my $doc_inline_end = '^\s*\*/\s*$'; 416my $export_symbol = '^\s*EXPORT_SYMBOL(_GPL)?\s*\(\s*(\w+)\s*\)\s*;'; 417 418my %parameterdescs; --- 2668 unchanged lines hidden --- |