From a2ea3c1e7a79b7b59b5bc3fe255e7851bfee80f8 Mon Sep 17 00:00:00 2001 From: Akash Levy Date: Fri, 1 Nov 2024 17:49:29 -0700 Subject: [PATCH] Fix colon issue --- passes/techmap/libparse.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/passes/techmap/libparse.cc b/passes/techmap/libparse.cc index 02408da43..75648716d 100644 --- a/passes/techmap/libparse.cc +++ b/passes/techmap/libparse.cc @@ -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(tok); eReport += "'.";