diff options
author | Anna-Maria Behnsen <[email protected]> | 2024-01-22 10:31:52 +0100 |
---|---|---|
committer | Jonathan Corbet <[email protected]> | 2024-01-30 13:03:01 -0700 |
commit | e5a5276695b0df12eea8a694afc8bca87a8162a4 (patch) | |
tree | 50f8752e83dfbac59037af89236d57cfa5972ccc | |
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 <[email protected]>
Signed-off-by: Anna-Maria Behnsen <[email protected]>
Tested-by: Randy Dunlap <[email protected]>
Acked-by: Daniel Vetter <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
-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 |