Fixed parsing issue with unexpected whitespaces in SAS files.

This commit is contained in:
2016-08-30 13:01:22 +02:00
parent 9447912fbf
commit 76f8df13fc
6 changed files with 33 additions and 7 deletions

View File

@@ -30,14 +30,10 @@ Predicate Predicate::fromSAS(utils::Parser<> &parser)
while (true)
{
// Parse arguments until reaching newline
// TODO: reimplement
/*parser.skipWhiteSpace(
[&](const auto character)
{
return character != '\n' && std::isspace(character);
});*/
// Skip whitespace but not newlines
parser.skipBlankSpace();
// TODO: check \r handling
if (parser.currentCharacter() == '\n')
break;