scripts/kernel-doc: Do not process backslash lines in comments

To prevent this, do the pre-processing only for lines which are no
comments, e.g. do not start with ' *'.

Suggested-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20240122093152.22536-3-anna-maria@linutronix.de
This commit is contained in:
Anna-Maria Behnsen 2024-01-22 10:31:52 +01:00 committed by Jonathan Corbet
parent a0abb82d25
commit e5a5276695
1 changed files with 1 additions and 1 deletions

View File

@ -2331,7 +2331,7 @@ sub process_file($) {
$section_counter = 0;
while (<IN_FILE>) {
while (s/\\\s*$//) {
while (!/^ \*/ && s/\\\s*$//) {
$_ .= <IN_FILE>;
}
# Replace tabs by spaces