UNPKG

codemirror-graphql

Version:
14 lines (11 loc) 445 B
/** * 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);