File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
export function getColors ( selectors : { [ P : string ] : string } ) {
2
2
// const grammar = atom.grammars.grammarForScopeName("source.julia") // TODO ?
3
3
4
- const div = document . createElement ( 'div' )
5
- div . classList . add ( 'editor' , 'editor-colors' , 'julia-syntax-color-selector' )
6
4
const styled : { [ P : string ] : HTMLSpanElement } = { }
7
5
const color : { [ P : string ] : string } = { }
8
6
7
+ const div = document . createElement ( "div" )
8
+ div . classList . add ( "editor" , "editor-colors" , "julia-syntax-color-selector" )
9
+
9
10
for ( const style in selectors ) {
10
- const child = document . createElement ( ' span' )
11
- child . innerText = ' foo'
11
+ const child = document . createElement ( " span" )
12
+ child . innerText = " foo"
12
13
child . classList . add ( ...selectors [ style ] )
13
14
div . appendChild ( child )
14
15
styled [ style ] = child
You can’t perform that action at this time.
0 commit comments