Skip to content

Commit 9242bd8

Browse files
committed
forRange types
1 parent d94ea3a commit 9242bd8

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
@@ -1,6 +1,6 @@
11
/** @babel */
22

3-
import { Point, Range } from "atom"
3+
import {Point, Range, RangeCompatible, TextEditor} from "atom"
44

55
const juliaScopes = ["source.julia", "source.embedded.julia"]
66
const openers = [
@@ -46,14 +46,14 @@ export function isStringScope(scopes: readonly string[]) {
4646
return isString && !isInterp
4747
}
4848

49-
function forRange(editor, range) {
49+
function forRange(editor: TextEditor, range: RangeCompatible) {
5050
// this should happen here and not a top-level so that we aren't relying on
5151
// Atom to load packages in a specific order:
5252
const juliaGrammar = atom.grammars.grammarForScopeName("source.julia")
5353

5454
if (juliaGrammar === undefined) return []
5555

56-
const scopes = []
56+
const scopes: string[] = []
5757
let n_parens = 0
5858
let n_brackets = 0
5959
const text = editor.getTextInBufferRange(range)

0 commit comments

Comments
 (0)