File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/** @babel */
2
2
3
- import { Point , Range } from "atom"
3
+ import { Point , Range , RangeCompatible , TextEditor } from "atom"
4
4
5
5
const juliaScopes = [ "source.julia" , "source.embedded.julia" ]
6
6
const openers = [
@@ -46,14 +46,14 @@ export function isStringScope(scopes: readonly string[]) {
46
46
return isString && ! isInterp
47
47
}
48
48
49
- function forRange ( editor , range ) {
49
+ function forRange ( editor : TextEditor , range : RangeCompatible ) {
50
50
// this should happen here and not a top-level so that we aren't relying on
51
51
// Atom to load packages in a specific order:
52
52
const juliaGrammar = atom . grammars . grammarForScopeName ( "source.julia" )
53
53
54
54
if ( juliaGrammar === undefined ) return [ ]
55
55
56
- const scopes = [ ]
56
+ const scopes : string [ ] = [ ]
57
57
let n_parens = 0
58
58
let n_brackets = 0
59
59
const text = editor . getTextInBufferRange ( range )
You can’t perform that action at this time.
0 commit comments