3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

Fix colon issue

This commit is contained in:
Akash Levy 2024-11-01 17:49:29 -07:00
parent b7e51a90e4
commit a2ea3c1e7a

View file

@ -319,12 +319,16 @@ LibertyAst *LibertyParser::parse()
{
case 'n':
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 ':':
eReport = "Unexpected '";
eReport += static_cast<char>(tok);
eReport += "'.";