mirror of https://github.com/YosysHQ/yosys.git
Added support for // comments in liberty parser
This commit is contained in:
parent
a139b49401
commit
c1ed2607fb
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue