You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff --git a/lcpp.lua b/lcpp.lua
index 4450dcd..e60f225 100755
--- a/lcpp.lua+++ b/lcpp.lua@@ -418,7 +418,7 @@ local function removeComments(input)
for k, v, start, end_ in tokenizer(input, LCPP_TOKENIZE_COMMENT) do
if k == "MLCOMMENT" then
local newlineCount = findn(input:sub(start, end_), "\n")
- local newlines = string.rep("\n", newlineCount)+ local newlines = string.rep("\\\n", newlineCount)^M
table.insert(out, newlines)
elseif k == "SLCOMMENT" then
table.insert(out, "\n")
ayourtch
added a commit
to ayourtch/lcpp
that referenced
this issue
Aug 18, 2016
Processing this chunk with lcpp:
causes string "this should never appear in the output but it does" to appear in the final output - whereas with cpp this does not happen.
The text was updated successfully, but these errors were encountered: