summaryrefslogtreecommitdiffstats
path: root/src/linguist
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-09-26 14:32:20 +0200
committerTopi Reiniƶ <topi.reinio@qt.io>2019-09-27 10:05:55 +0000
commitdcd5df5823d61e3ad479f259dfd4a25d67a54e4a (patch)
treee9f47da9963fbc60dba4a46eccf21c425c6f4bef /src/linguist
parent0407495a027b8e662c773eafb50ab66fd4638962 (diff)
parentc8e79294237260d735324663932a676d8084efcb (diff)
Merge remote-tracking branch 'origin/5.13' into 5.14
Diffstat (limited to 'src/linguist')
-rw-r--r--src/linguist/lupdate/qdeclarative.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/linguist/lupdate/qdeclarative.cpp b/src/linguist/lupdate/qdeclarative.cpp
index 216bc8329..7a453aa32 100644
--- a/src/linguist/lupdate/qdeclarative.cpp
+++ b/src/linguist/lupdate/qdeclarative.cpp
@@ -108,6 +108,10 @@ protected:
yyMsg(identLineNo) << qPrintable(LU::tr("%1() requires at least one argument.\n").arg(name));
return;
}
+ if (AST::cast<AST::TemplateLiteral *>(node->arguments->expression)) {
+ yyMsg(identLineNo) << qPrintable(LU::tr("%1() cannot be used with template literals. Ignoring\n").arg(name));
+ return;
+ }
QString source;
if (!createString(node->arguments->expression, &source))