Skip to content

Commit c1b9b44

Browse files
committed
isStart types
1 parent 8d42c5b commit c1b9b44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib_src/misc/blocks.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,12 @@ function isCont(lineInfo: LineInfo) {
4545

4646
return lineInfo.line.match(/^(else|elseif|catch|finally)\b/)
4747
}
48-
function isStart(lineInfo) {
48+
49+
function isStart(lineInfo: LineInfo) {
4950
return !(/^\s/.test(lineInfo.line) || isBlank(lineInfo) || isEnd(lineInfo) || isCont(lineInfo))
5051
}
5152

53+
5254
function walkBack(editor: TextEditor, row) {
5355
while (row > 0 && !isStart(getLine(editor, row))) {
5456
row--

0 commit comments

Comments
 (0)