diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2020-01-17 14:28:09 +0100 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2020-01-30 08:24:40 +0100 |
commit | e080f48f905be597b1a645f1641b2b06553df6a2 (patch) | |
tree | eef0b5d503cf94ed217eab5008dff076e8833113 /tools/qmlformat/commentastvisitor.h | |
parent | 78a69fa05e3b2af6ed640692d81e2b1c355fe525 (diff) |
qmlformat: Support even more language features
Adds support (among other things) for:
- Pragmas
- Type annotations
- get / set properties
- Some previously unsupported escape sequences (\b,\v...)
- Calling methods on numeric literals
Also now checks whether the dumped code is still parsable.
Change-Id: Ia142a7c0b3e608115e79c1d98a62b682dce4eec9
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tools/qmlformat/commentastvisitor.h')
-rw-r--r-- | tools/qmlformat/commentastvisitor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/qmlformat/commentastvisitor.h b/tools/qmlformat/commentastvisitor.h index 369784a5ba..c756c4f820 100644 --- a/tools/qmlformat/commentastvisitor.h +++ b/tools/qmlformat/commentastvisitor.h @@ -108,6 +108,7 @@ public: void endVisit(StatementList *node) override; bool visit(UiImport *node) override; + bool visit(UiPragma *node) override; bool visit(UiPublicMember *node) override; bool visit(FunctionDeclaration *node) override; private: |