Skip to content

Commit d94ea3a

Browse files
committed
scopes: readonly string[]
1 parent 2c92a9a commit d94ea3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib_src/misc/scopes.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ const openers = [
2525
]
2626
const reopeners = ["else", "elseif", "catch", "finally"]
2727

28-
function isKeywordScope(scopes) {
28+
function isKeywordScope(scopes: readonly string[]) {
2929
// Skip 'source.julia'
3030
return scopes.slice(1).some(scope => {
3131
return scope.indexOf("keyword") > -1
3232
})
3333
}
3434

35-
export function isStringScope(scopes) {
35+
export function isStringScope(scopes: readonly string[]) {
3636
let isString = false
3737
let isInterp = false
3838
for (const scope of scopes) {
@@ -97,7 +97,7 @@ export function forLines(editor, start, end) {
9797
return forRange(editor, range)
9898
}
9999

100-
export function isCommentScope(scopes) {
100+
export function isCommentScope(scopes: readonly string[]) {
101101
// Skip 'source.julia'
102102
return scopes.slice(1).some(scope => {
103103
return scope.indexOf("comment") > -1

0 commit comments

Comments
 (0)