diff options
author | David Shah <dave@ds0.me> | 2020-10-12 18:10:23 +0100 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2020-11-30 08:45:27 +0000 |
commit | d849e2f8b47c2da442db44af4ee613c353d7efb9 (patch) | |
tree | 1bdee6703b4065d647da6f159ce48fe7ec910213 | |
parent | af3af59df48f2752912d1c788ad56d83a73839ff (diff) | |
download | nextpnr-d849e2f8b47c2da442db44af4ee613c353d7efb9.tar.gz nextpnr-d849e2f8b47c2da442db44af4ee613c353d7efb9.tar.bz2 nextpnr-d849e2f8b47c2da442db44af4ee613c353d7efb9.zip |
nexus: Fix PDC string handling
Signed-off-by: David Shah <dave@ds0.me>
-rw-r--r-- | nexus/pdc.cc | 2 |
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(); |