diff options
author | Anna-Maria Behnsen <anna-maria@linutronix.de> | 2024-01-22 10:31:52 +0100 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2024-01-30 13:03:01 -0700 |
commit | e5a5276695b0df12eea8a694afc8bca87a8162a4 (patch) | |
tree | 50f8752e83dfbac59037af89236d57cfa5972ccc /scripts/kernel-doc | |
parent | a0abb82d2525d4e2b48c6a81f408f7787cc7fed2 (diff) |
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
Diffstat (limited to 'scripts/kernel-doc')
-rwxr-xr-x | scripts/kernel-doc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index e8aefd258a29..4277af79de86 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -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 |