Skip to content

Commit

Permalink
[JavaScript] Add test for left expressions in for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Thom1729 committed Sep 2, 2023
1 parent 16cd011 commit 81cacf6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions JavaScript/tests/syntax_test_js_control.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,21 @@
// ^^^^^^^^^^^ meta.group
// ^^ keyword.operator.word

for (x.y.z of list) {}
// ^^^^^^^^^^^^^^^^^^^^^^ meta.for
// ^^^ keyword.control.loop.for
// ^^^^^^^^^^^^^^^ meta.group
// ^ punctuation.section.group.begin
// ^ variable.other.readwrite
// ^ punctuation.accessor
// ^ meta.property.object
// ^ punctuation.accessor
// ^ meta.property.object
// ^^ keyword.operator.word
// ^^^^ variable.other.readwrite
// ^ punctuation.section.group.end
// ^^ meta.block

for await (const x of list) {}
// ^^^ keyword.control.loop.for
// ^^^^^ keyword.control.flow.await
Expand Down

0 comments on commit 81cacf6

Please sign in to comment.