Skip to content

Commit c40a78f

Browse files
committed
isEnd types + using lineInfo.line
1 parent 4b44978 commit c40a78f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib_src/misc/blocks.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ function isBlank({ line, scope }: LineInfo, allowDocstrings = false) {
2727
}
2828
return /^\s*(#.*)?$/.test(line)
2929
}
30-
function isEnd({ line, scope }) {
31-
if (isStringEnd({ line, scope })) {
30+
function isEnd(lineInfo: LineInfo) {
31+
if (isStringEnd(lineInfo)) {
3232
return true
3333
}
34-
return /^(end\b|\)|\]|\})/.test(line)
34+
return /^(end\b|\)|\]|\})/.test(lineInfo.line)
3535
}
3636
function isStringEnd({ line, scope }) {
3737
scope = scope.join(" ")

0 commit comments

Comments
 (0)