forked from qt-creator/qt-creator
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> (cherry picked from qtbase/c9270d66395c90068388857c8fd201c62fb5e96f)
This commit is contained in:
@@ -311,6 +311,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;
|
||||||
|
|||||||
Reference in New Issue
Block a user