History

kernel-doc: Added "*" in $type_constants2 to fix 'make htmldocs' warning.

Fixed: WARNING: Inline literal start-string without end-string in Documentation/core-api/workqueue.rst Added "*" in $type_constants2 in kernel-doc script to include "*" in the conversion to hightlights. Previously: %WQ_* --> ``WQ_``* After Changes: %WQ_* --> ``WQ_*`` Need for the fix: ``* is not recognized as a valid end-string for inline literal.

Utkarsh Tripathi committed 2 years ago

Commit d3dedad1 parent fd37a0f1 file · +1 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kernel-doc+1−1
@@ -62,7 +62,7 @@ my $anon_struct_union = 0; · 61 unmodified lines
6262
6363 # match expressions used to find embedded type information
6464 my $type_constant = '\b``([^\`]+)``\b';
65−my $type_constant2 = '\%([-_\w]+)';
65+my $type_constant2 = '\%([-_*\w]+)';
6666 my $type_func = '(\w+)\(\)';
6767 my $type_param = '\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)';
6868 my $type_param_ref = '([\!~\*]?)\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)';