mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Added test case for adjacent braces.
This commit is contained in:
parent
36308fd493
commit
1842dd0568
9
tests/cases/fourslash/getMatchingBracesAdjacentBraces.ts
Normal file
9
tests/cases/fourslash/getMatchingBracesAdjacentBraces.ts
Normal file
@ -0,0 +1,9 @@
|
||||
////function f[|<T>|][|(x: T)|][|{
|
||||
//// return x;
|
||||
////}|]
|
||||
|
||||
// If there is an adjacent opening and closing brace,
|
||||
// then only the opening brace should get highlighted.
|
||||
test.ranges().forEach(range => {
|
||||
verify.matchingBracePositionInCurrentFile(range.start, range.end - 1);
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user