fix quote nesting in split_value_list()

a single quote must not disrupt a double quoted string and vice-versa.

Change-Id: Ibb277bc1c930a7dbe9199ca572507ababbcfae4c
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Oswald Buddenhagen 2015-04-28 21:25:50 +02:00
parent f37381e292
commit c9270d6639

View File

@ -314,6 +314,7 @@ ProStringList QMakeEvaluator::split_value_list(const QString &vals, const ProFil
switch (unicode) { switch (unicode) {
case '"': case '"':
case '\'': case '\'':
if (!quote)
quote = unicode; quote = unicode;
hadWord = true; hadWord = true;
break; break;