aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-11-05 12:33:21 +0100
committerClifford Wolf <clifford@clifford.at>2018-11-05 12:33:33 +0100
commit719e29404a74db8f994c9c3dc0d6b6e8d7f114a7 (patch)
tree06b303fae19d12c5f1ce145ddd07b6dbde389d2a /passes/techmap
parent8f50f289b9d142828aa38a2d3338e8bf517b0258 (diff)
downloadyosys-719e29404a74db8f994c9c3dc0d6b6e8d7f114a7.tar.gz
yosys-719e29404a74db8f994c9c3dc0d6b6e8d7f114a7.tar.bz2
yosys-719e29404a74db8f994c9c3dc0d6b6e8d7f114a7.zip
Allow square brackets in liberty identifiers
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'passes/techmap')
-rw-r--r--passes/techmap/libparse.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/techmap/libparse.cc b/passes/techmap/libparse.cc
index bb09117e2..3927a657b 100644
--- a/passes/techmap/libparse.cc
+++ b/passes/techmap/libparse.cc
@@ -90,11 +90,11 @@ int LibertyParser::lexer(std::string &str)
c = f.get();
} while (c == ' ' || c == '\t' || c == '\r');
- if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_' || c == '-' || c == '+' || c == '.') {
+ if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_' || c == '-' || c == '+' || c == '.' || c == '[' || c == ']') {
str = c;
while (1) {
c = f.get();
- if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_' || c == '-' || c == '+' || c == '.')
+ if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_' || c == '-' || c == '+' || c == '.' || c == '[' || c == ']')
str += c;
else
break;