qml | Fix pragma reformatting

After this change reformatter test (tests/auto/qml/reformatter/tst_reformatter)
starts to work correctly for singleton example (qmlsingleton.qml)
NOTE: Just cherry-picking change from master branch.

Change-Id: Ia0561aa8b920fc5c62a8dea93341721f37b68dd8
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
(cherry picked from commit 749eaaad81)
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Uladzislau Paulovich
2019-06-09 00:32:44 +03:00
committed by Tim Jenssen
parent 36135aa261
commit 798879c797

View File

@@ -537,6 +537,8 @@ protected:
bool visit(UiPragma *ast) override
{
out("pragma ", ast->pragmaToken);
out(ast->name.toString());
newLine();
return false;
}