forked from quickshell/quickshell
core: allow qml scanner to detect namespaced and versioned imports
This commit is contained in:
parent
6f774af11e
commit
d7079b7524
1 changed files with 1 additions and 0 deletions
|
@ -122,6 +122,7 @@ bool QmlScanner::scanQmlFile(const QString& path) {
|
|||
while (importCursor != line.length()) {
|
||||
auto c = line.at(importCursor);
|
||||
if (c == '.') c = '/';
|
||||
else if (c == ' ') break;
|
||||
else if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9')
|
||||
|| c == '_')
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue