aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlformat/commentastvisitor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qmlformat/commentastvisitor.cpp')
-rw-r--r--tools/qmlformat/commentastvisitor.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/qmlformat/commentastvisitor.cpp b/tools/qmlformat/commentastvisitor.cpp
index 8264a6099e..4dd241ff93 100644
--- a/tools/qmlformat/commentastvisitor.cpp
+++ b/tools/qmlformat/commentastvisitor.cpp
@@ -268,3 +268,9 @@ bool CommentAstVisitor::visit(UiImport *node)
attachComment(node);
return true;
}
+
+bool CommentAstVisitor::visit(UiPragma *node)
+{
+ attachComment(node);
+ return true;
+}