diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-01-25 06:32:16 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-01-25 06:32:16 +0100 |
commit | c1ed2607fbda1066401e8b96c3c998510a3eab96 (patch) | |
tree | c3f4a204596dd7884201087d0fe9e62e5e9b1121 | |
parent | a139b4940115ac288ac39d81ce9e089bd52bb2f0 (diff) | |
download | yosys-c1ed2607fbda1066401e8b96c3c998510a3eab96.tar.gz yosys-c1ed2607fbda1066401e8b96c3c998510a3eab96.tar.bz2 yosys-c1ed2607fbda1066401e8b96c3c998510a3eab96.zip |
Added support for // comments in liberty parser
-rw-r--r-- | passes/techmap/libparse.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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"); |