Skip to content

Commit

Permalink
add auto closing brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Nov 24, 2021
1 parent 5d66c51 commit 8fbdbfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/remix-ui/editor/src/lib/remix-ui-editor.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useRef, useEffect, useReducer } from 'react' // eslint-disable-line
import Editor from '@monaco-editor/react'
import { reducerActions, reducerListener, initialState } from './actions/editor'
import { language } from './syntax'
import { language, conf } from './syntax'

import './remix-ui-editor.css'

Expand Down Expand Up @@ -342,6 +342,7 @@ export const EditorUI = (props: EditorUIProps) => {
monacoRef.current.languages.register({ id: 'remix-solidity' })
// Register a tokens provider for the language
monacoRef.current.languages.setMonarchTokensProvider('remix-solidity', language)
monacoRef.current.languages.setLanguageConfiguration('remix-solidity', conf)
}

return (
Expand Down

0 comments on commit 8fbdbfb

Please sign in to comment.