codemirror-graphql
Version:
GraphQL mode and helpers for CodeMirror.
14 lines (11 loc) • 445 B
text/typescript
/**
* Copyright (c) 2021 GraphQL Contributors
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import CodeMirror from 'codemirror';
import modeFactory from './utils/mode-factory';
CodeMirror.defineMode('graphql', modeFactory);