Added support for // comments in liberty parser

This commit is contained in:
Clifford Wolf 2014-01-25 06:32:16 +01:00
parent a139b49401
commit c1ed2607fb
1 changed files with 5 additions and 0 deletions

View File

@ -126,6 +126,11 @@ int LibertyParser::lexer(std::string &str)
line++;
}
return lexer(str);
} else if (c == '/') {
while (c > 0 && c != '\n')
c = fgetc(f);
line++;
return lexer(str);
}
ungetc(c, f);
// fprintf(stderr, "LEX: char >>/<<\n");