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 == '"') { if (c == '"') {
str = c; str = "";
while (1) { while (1) {
c = f.get(); c = f.get();
if (c == '\n') if (c == '\n')
line++; line++;
str += c;
if (c == '"') if (c == '"')
break; break;
str += c;
} }
// fprintf(stderr, "LEX: string >>%s<<\n", str.c_str()); // fprintf(stderr, "LEX: string >>%s<<\n", str.c_str());
return 'v'; return 'v';