diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2014-04-09 15:39:37 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-24 15:36:42 +0200 |
commit | 41f0925dc8e5a9c51cdef02c5d6cd5e134c72391 (patch) | |
tree | cd8391d31195641860108ef1126cbfd0cca91b2f /tests/auto/qml/qqmllanguage | |
parent | a885d10a0289da85b8c966d2fa40fb10edae4fd7 (diff) |
Fix parsing of JS imports from JS files
If a .js file had an import of another .js file itself, like so:
.import "otherFile.js" as Blah
then the import scanner would keep the quotes and store
"\"otherFile.js\""
in the JSON as opposed to
"otherFile.js"
This is fixed by making use of the same code for extracting the .import
statements from JS files that is also used by the engine itself.
Additionally this fixes the use of comments in .import lines (and other
whitespace characters not producing tokens).
Change-Id: I4dd4a5217308f6fc93b6b148cd8e13392f97d2a6
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests/auto/qml/qqmllanguage')
0 files changed, 0 insertions, 0 deletions