Skip to content

Commit fe10420

Browse files
committed
Bump simplecpp
1 parent 5f364ca commit fe10420

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

externals/simplecpp/simplecpp.cpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -327,15 +327,6 @@ static void ungetChar(std::istream &istr, unsigned int bom)
327327
istr.unget();
328328
}
329329

330-
static unsigned char prevChar(std::istream &istr, unsigned int bom)
331-
{
332-
ungetChar(istr, bom);
333-
ungetChar(istr, bom);
334-
unsigned char c = readChar(istr, bom);
335-
readChar(istr, bom);
336-
return c;
337-
}
338-
339330
static unsigned short getAndSkipBOM(std::istream &istr)
340331
{
341332
const int ch1 = istr.peek();
@@ -556,7 +547,8 @@ void simplecpp::TokenList::readfile(std::istream &istr, const std::string &filen
556547
// string / char literal
557548
else if (ch == '\"' || ch == '\'') {
558549
std::string prefix;
559-
if (cback() && cback()->name && !std::isspace(prevChar(istr, bom)) && (isStringLiteralPrefix(cback()->str()))) {
550+
if (cback() && cback()->name && isStringLiteralPrefix(cback()->str()) &&
551+
((cback()->location.col + cback()->str().size()) == location.col)) {
560552
prefix = cback()->str();
561553
}
562554
// C++11 raw string literal

0 commit comments

Comments
 (0)