mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-14 09:56:16 +00:00
Fix colon issue
This commit is contained in:
parent
b7e51a90e4
commit
a2ea3c1e7a
1 changed files with 5 additions and 1 deletions
|
@ -319,12 +319,16 @@ LibertyAst *LibertyParser::parse()
|
||||||
{
|
{
|
||||||
case 'n':
|
case 'n':
|
||||||
continue;
|
continue;
|
||||||
|
case ':': // SILIMATE HACK: eat up the ':' and the next thing too
|
||||||
|
tok = lexer(arg);
|
||||||
|
if (tok != 'v')
|
||||||
|
error("Expecting string after ':'.");
|
||||||
|
break;
|
||||||
case '[':
|
case '[':
|
||||||
case ']':
|
case ']':
|
||||||
case '}':
|
case '}':
|
||||||
case '{':
|
case '{':
|
||||||
case '\"':
|
case '\"':
|
||||||
case ':':
|
|
||||||
eReport = "Unexpected '";
|
eReport = "Unexpected '";
|
||||||
eReport += static_cast<char>(tok);
|
eReport += static_cast<char>(tok);
|
||||||
eReport += "'.";
|
eReport += "'.";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue