diff --git a/sv-parser-pp/src/preprocess.rs b/sv-parser-pp/src/preprocess.rs index 77b4faf..c8a1fe3 100644 --- a/sv-parser-pp/src/preprocess.rs +++ b/sv-parser-pp/src/preprocess.rs @@ -816,12 +816,12 @@ fn resolve_text_macro_usage, U: AsRef>( } else { replaced.push_str( &text - .replace("``", "") - .replace("`\\`\"", "\\\"") - .replace("`\"", "\"") - .replace("\\\n", "\n") - .replace("\\\r\n", "\r\n") - .replace("\\\r", "\r"), + .replace("``", "") // Argument substitution. + .replace("`\\`\"", "\\\"") // Escaped backslash. + .replace("`\"", "\"") // Escaped quote. + .replace("\\\n", "\n") // Line continuation (Unix). + .replace("\\\r\n", "\r\n") // Line continuation (Windows). + .replace("\\\r", "\r"), // Line continuation (old Mac). ); } }