import ace from 'brace' ; import 'brace/mode/sql' ; import 'brace/ext/language_tools' ; import { AceInterface } from './ace_types' ; import './osquery_highlight_rules' ; ( ace as unknown as AceInterface ) . define ( 'ace/mode/osquery' , [ 'require' , 'exports' , 'ace/mode/sql' , 'ace/mode/osquery_highlight_rules' ] , function ( acequire , exports ) { const TextMode = acequire ( './sql' ) . Mode ; const OsqueryHighlightRules = acequire ( './osquery_highlight_rules' ) . OsqueryHighlightRules ; class Mode extends TextMode { constructor ( ... args ) { super ( ... args ) ; this . HighlightRules = OsqueryHighlightRules ; } } Mode . prototype . lineCommentStart = '--' ; Mode . prototype . $id = 'ace/mode/osquery' ; exports . Mode = Mode ; } ) ;