Skip to content

Commit 33d97af

Browse files
committed
isStringEnd types + lineInfo.scope
1 parent c40a78f commit 33d97af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib_src/misc/blocks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ function isEnd(lineInfo: LineInfo) {
3333
}
3434
return /^(end\b|\)|\]|\})/.test(lineInfo.line)
3535
}
36-
function isStringEnd({ line, scope }) {
37-
scope = scope.join(" ")
36+
function isStringEnd(lineInfo: LineInfo) {
37+
const scope = lineInfo.scope.join(" ")
3838
return /\bstring\.multiline\.end\b/.test(scope) || (/\bstring\.end\b/.test(scope) && /\bbacktick\b/.test(scope))
3939
}
4040
function isCont({ line, scope }) {

0 commit comments

Comments
 (0)