Fixed handling of quotes in liberty parser

This commit is contained in:
Clifford Wolf 2015-03-18 16:03:19 +01:00
parent aed4d763cf
commit 8b1e0bdd9e
1 changed files with 2 additions and 2 deletions

View File

@ -105,14 +105,14 @@ int LibertyParser::lexer(std::string &str)
}
if (c == '"') {
str = c;
str = "";
while (1) {
c = f.get();
if (c == '\n')
line++;
str += c;
if (c == '"')
break;
str += c;
}
// fprintf(stderr, "LEX: string >>%s<<\n", str.c_str());
return 'v';