We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d42c5b commit c1b9b44Copy full SHA for c1b9b44
lib_src/misc/blocks.ts
@@ -45,10 +45,12 @@ function isCont(lineInfo: LineInfo) {
45
46
return lineInfo.line.match(/^(else|elseif|catch|finally)\b/)
47
}
48
-function isStart(lineInfo) {
+
49
+function isStart(lineInfo: LineInfo) {
50
return !(/^\s/.test(lineInfo.line) || isBlank(lineInfo) || isEnd(lineInfo) || isCont(lineInfo))
51
52
53
54
function walkBack(editor: TextEditor, row) {
55
while (row > 0 && !isStart(getLine(editor, row))) {
56
row--
0 commit comments