Skip to content

Commit d7079b7

Browse files
committed
core: allow qml scanner to detect namespaced and versioned imports
1 parent 6f774af commit d7079b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/scan.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ bool QmlScanner::scanQmlFile(const QString& path) {
122122
while (importCursor != line.length()) {
123123
auto c = line.at(importCursor);
124124
if (c == '.') c = '/';
125+
else if (c == ' ') break;
125126
else if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9')
126127
|| c == '_')
127128
{

0 commit comments

Comments
 (0)