From: Clifford Wolf Date: Sat, 25 Jan 2014 05:32:16 +0000 (+0100) Subject: Added support for // comments in liberty parser X-Git-Tag: yosys-0.2.0~148 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c1ed2607fbda1066401e8b96c3c998510a3eab96;p=yosys.git Added support for // comments in liberty parser --- diff --git a/passes/techmap/libparse.cc b/passes/techmap/libparse.cc index 8f4a1a5fa..8cbb8e2be 100644 --- a/passes/techmap/libparse.cc +++ b/passes/techmap/libparse.cc @@ -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");