Skip to content

Commit 71554ae

Browse files
committed
No longer indenting to open angle brackets (closes briankendall#2)
Requires actual analysis of code syntax -- maybe someday I'll implement that?
1 parent 61f16df commit 71554ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ function isClosingBracket(bracket: string) {
7777
}
7878

7979
function doesLineEndWithOpenBracket(line: string) {
80-
var regex = /(\(|\[|{|\<)\s*$/g;
80+
var regex = /(\(|\[|{)\s*$/g;
8181
return line.search(regex) !== -1;
8282
}
8383

8484
function allBracketsInString(s: string) {
85-
var regex = /(\(|\)|\[|\]|{|}|\<|\>)/g;
85+
var regex = /(\(|\)|\[|\]|{|})/g;
8686
var indices = new Array();
8787
var match = null;
8888

0 commit comments

Comments
 (0)