aboutsummaryrefslogtreecommitdiffstats
path: root/nexus/pdc.cc
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-10-12 18:10:23 +0100
committerDavid Shah <dave@ds0.me>2020-11-30 08:45:27 +0000
commitd849e2f8b47c2da442db44af4ee613c353d7efb9 (patch)
tree1bdee6703b4065d647da6f159ce48fe7ec910213 /nexus/pdc.cc
parentaf3af59df48f2752912d1c788ad56d83a73839ff (diff)
downloadnextpnr-d849e2f8b47c2da442db44af4ee613c353d7efb9.tar.gz
nextpnr-d849e2f8b47c2da442db44af4ee613c353d7efb9.tar.bz2
nextpnr-d849e2f8b47c2da442db44af4ee613c353d7efb9.zip
nexus: Fix PDC string handling
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'nexus/pdc.cc')
-rw-r--r--nexus/pdc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/nexus/pdc.cc b/nexus/pdc.cc
index 98a44276..2622bfe1 100644
--- a/nexus/pdc.cc
+++ b/nexus/pdc.cc
@@ -170,7 +170,7 @@ struct PDCParser
while (true) {
char c = peek();
- if (!in_quotes && !in_braces && !escaped && std::isblank(c)) {
+ if (!in_quotes && !in_braces && !escaped && (std::isblank(c) || c == ']')) {
break;
}
get();