import * as monaco from 'monaco-editor/esm/vs/editor/editor.api' ; import * as xJson from './xjson' ; import * as opensearchql from './opensearchql' ; import * as painless from './painless' ; export const registerLexerRules = ( m ) => { m . languages . register ( { id : xJson . ID } ) ; m . languages . setMonarchTokensProvider ( xJson . ID , xJson . lexerRules ) ; m . languages . register ( { id : painless . ID } ) ; m . languages . setMonarchTokensProvider ( painless . ID , painless . lexerRules ) ; m . languages . register ( { id : opensearchql . ID } ) ; m . languages . setMonarchTokensProvider ( opensearchql . ID , opensearchql . lexerRules ) ; } ;