summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-01-25 06:32:16 +0100
committerClifford Wolf <clifford@clifford.at>2014-01-25 06:32:16 +0100
commitc1ed2607fbda1066401e8b96c3c998510a3eab96 (patch)
treec3f4a204596dd7884201087d0fe9e62e5e9b1121
parenta139b4940115ac288ac39d81ce9e089bd52bb2f0 (diff)
Added support for // comments in liberty parser
-rw-r--r--passes/techmap/libparse.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/passes/techmap/libparse.cc b/passes/techmap/libparse.cc
index 8f4a1a5f..8cbb8e2b 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");