mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
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:
parent
a0abb82d25
commit
e5a5276695
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user