TypeScript/tests/cases/fourslash/getMatchingBracesAdjacentBraces.ts

10 lines
292 B
TypeScript
Raw Normal View History

2015-03-02 23:41:44 +01:00
////function f[|<T>|][|(x: T)|][|{
2014-09-23 17:23:59 +02:00
//// return x;
////}|]
// If there is an adjacent opening and closing brace,
// then only the opening brace should get highlighted.
for (const range of test.ranges()) {
verify.matchingBracePositionInCurrentFile(range.pos, range.end - 1);
}