From: Clifford Wolf Date: Tue, 14 Jan 2014 17:56:29 +0000 (+0100) Subject: Added "+" to list of liberty token characters X-Git-Tag: yosys-0.2.0~175 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c1da7661a5d4dc2669db77912a8f81fa8095f1fa;p=yosys.git Added "+" to list of liberty token characters --- diff --git a/passes/techmap/libparse.cc b/passes/techmap/libparse.cc index 8fc03b5c9..2be3c586b 100644 --- a/passes/techmap/libparse.cc +++ b/passes/techmap/libparse.cc @@ -87,11 +87,11 @@ int LibertyParer::lexer(std::string &str) c = fgetc(f); } while (c == ' ' || c == '\t' || c == '\r'); - if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_' || c == '-' || c == '.') { + if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_' || c == '-' || c == '+' || c == '.') { str = c; while (1) { c = fgetc(f); - if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_' || c == '-' || c == '.') + if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_' || c == '-' || c == '+' || c == '.') str += c; else break;