diff options
author | Semih Yavuz <semih.yavuz@qt.io> | 2024-04-30 14:33:24 +0200 |
---|---|---|
committer | Semih Yavuz <semih.yavuz@qt.io> | 2024-05-07 13:36:09 +0200 |
commit | 5230151276041b16521122d6a55f5bc45780cdf2 (patch) | |
tree | c42698833f5b21c47ad3d88026ffe1c8f628961f /tests | |
parent | 04751e1cf86647554d69c014c2c423f3c6c89ead (diff) |
semantichighlighting: highlight for-declarations
Add declarationKindToken location in the pattern element node. This is
required for semantic highlighting to highlight the type correctly
within iteration statements.
Add type identifier region for the declaration kind token in the
for-declaration construct.
Fixes: QTBUG-124677
Task-number: QTBUG-120000
Change-Id: I02520bdc6f1b9dfc5d47078cd7e5e8d2f40bf382
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qmlls/utils/tst_qmlls_highlighting.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/auto/qmlls/utils/tst_qmlls_highlighting.cpp b/tests/auto/qmlls/utils/tst_qmlls_highlighting.cpp index fe5d83c53d..004a326684 100644 --- a/tests/auto/qmlls/utils/tst_qmlls_highlighting.cpp +++ b/tests/auto/qmlls/utils/tst_qmlls_highlighting.cpp @@ -507,8 +507,6 @@ void tst_qmlls_highlighting::highlights() emptyChildrenVisitor); const auto highlights = h.highlights(); - QEXPECT_FAIL("for-declaration", - "For declaration highlighting should be implemented by QTBUG-124677", Abort); QVERIFY(highlights.contains(expectedHighlightedToken.offset)); QCOMPARE(highlights.value(expectedHighlightedToken.offset), expectedHighlightedToken); } |