Skip to content

Commit

Permalink
Allow hex string after regular string to make old tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
ghallak committed Nov 18, 2019
1 parent 068c5e4 commit 813c80e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
9 changes: 0 additions & 9 deletions liblangutil/Scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -776,15 +776,6 @@ Token Scanner::scanString()
return setError(ScannerError::IllegalStringEndQuote);
literal.complete();
advance(); // consume quote

// make sure no regular string is followed by a hex string
size_t rollbackTo = m_source->position();
skipWhitespace();
if (peekHexPrefix())
return setError(ScannerError::IllegalToken);
// rollback the extra consumed whitespaces
m_char = m_source->rollback(size_t(m_source->position()) - rollbackTo);

return Token::StringLiteral;
}

Expand Down

This file was deleted.

0 comments on commit 813c80e

Please sign in to comment.