UNPKG

fsl-lezer

Version:

FSL grammar in Lezer, to make FSL and JSSM available to CodeMirror

28 lines (11 loc) 409 B
import { EditorView, basicSetup } from "codemirror" import { fsl } from './fsl'; function bootstrap() { const tgt = document.getElementById('editor_target'); if (tgt === null) { throw new Error('No target for editor!'); } let editor = new EditorView({ extensions : [basicSetup, fsl()], parent : tgt }); } export { bootstrap };