bump simplecpp (#2245)
This commit is contained in:
parent
93e9e12aa1
commit
d27e70db8e
|
@ -1133,12 +1133,20 @@ std::string simplecpp::TokenList::readUntil(std::istream &istr, const Location &
|
|||
backslash = false;
|
||||
ret += ch;
|
||||
if (ch == '\\') {
|
||||
const char next = readChar(istr, bom);
|
||||
if (next == '\r' || next == '\n') {
|
||||
ret.erase(ret.size()-1U);
|
||||
backslash = (next == '\r');
|
||||
}
|
||||
ret += next;
|
||||
bool update_ch = false;
|
||||
char next = 0;
|
||||
do {
|
||||
next = readChar(istr, bom);
|
||||
if (next == '\r' || next == '\n') {
|
||||
ret.erase(ret.size()-1U);
|
||||
backslash = (next == '\r');
|
||||
update_ch = false;
|
||||
} else if (next == '\\')
|
||||
update_ch = !update_ch;
|
||||
ret += next;
|
||||
} while (next == '\\');
|
||||
if (update_ch)
|
||||
ch = next;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue