mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-22 20:32:07 +00:00
Fix two parsing bugs that were causing private regression tests to fail.
These were introduced by 0a6d9f4
.
1) While in a paren "(", don't error on newline.
2) Don't parse an extra token when parsing vector ranges. Let the caller parse the next token as necessary.
This commit is contained in:
parent
23f59e0196
commit
4610889d27
2 changed files with 9 additions and 6 deletions
|
@ -106,7 +106,7 @@ namespace Yosys
|
|||
int lexer(std::string &str);
|
||||
|
||||
void report_unexpected_token(int tok);
|
||||
int parse_vector_range(int tok);
|
||||
void parse_vector_range(int tok);
|
||||
LibertyAst *parse();
|
||||
void error() const;
|
||||
void error(const std::string &str) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue