mirror of
https://github.com/pret/pmd-red.git
synced 2026-08-29 20:24:43 -05:00
Preproc: output string literals, and fix escape bug
This commit is contained in:
@@ -44,6 +44,7 @@ std::string StringParser::ReadCharOrEscape()
|
||||
if (sequence.length() == 0)
|
||||
RaiseError("no mapping exists for double quote");
|
||||
|
||||
m_pos++;
|
||||
return sequence;
|
||||
}
|
||||
else if (m_buffer[m_pos] == '\\')
|
||||
@@ -53,6 +54,7 @@ std::string StringParser::ReadCharOrEscape()
|
||||
if (sequence.length() == 0)
|
||||
RaiseError("no mapping exists for backslash");
|
||||
|
||||
m_pos++;
|
||||
return sequence;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user