Skip to content

Commit

Permalink
Another wish for the IND mode: next scope from indented line.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukstafi committed Jan 31, 2023
1 parent da6efae commit fbfca27
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/test/suite/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,18 @@ suite('Extension Test Suite', () => {
'goPastPreviousScope', mode, 'python'
));

test('Tricky syntax navigation: next scope with IND from indented line ' + mode, testCase(
// For begin/end scope, we always pick the nearer end-point, which comes from indentation.
`
for (let index = 0;
index < array.length;
index++)@ {
const element = array[index];
}^
`,
'goPastNextScope', mode, 'typescript' , true
));

}
for (const mode of ['NON/RAW', 'IND/RAW']) {
test('Basic parentheses navigation: up to unmatched left ' + mode, testCase(
Expand Down

0 comments on commit fbfca27

Please sign in to comment.