antosdk-apps/MonacoCore/bundle/node_modules_monaco-editor_esm_vs_basic-languages_graphql_graphql_js.bundle.js

22 lines
6.7 KiB
JavaScript
Raw Normal View History

2021-04-19 15:08:15 +02:00
/*
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
(self["webpackChunkbrowser_esm_webpack"] = self["webpackChunkbrowser_esm_webpack"] || []).push([["node_modules_monaco-editor_esm_vs_basic-languages_graphql_graphql_js"],{
/***/ "./node_modules/monaco-editor/esm/vs/basic-languages/graphql/graphql.js":
/*!******************************************************************************!*\
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/graphql/graphql.js ***!
\******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"conf\": () => (/* binding */ conf),\n/* harmony export */ \"language\": () => (/* binding */ language)\n/* harmony export */ });\n/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\nvar conf = {\r\n comments: {\r\n lineComment: '#'\r\n },\r\n brackets: [\r\n ['{', '}'],\r\n ['[', ']'],\r\n ['(', ')']\r\n ],\r\n autoClosingPairs: [\r\n { open: '{', close: '}' },\r\n { open: '[', close: ']' },\r\n { open: '(', close: ')' },\r\n { open: '\"\"\"', close: '\"\"\"', notIn: ['string', 'comment'] },\r\n { open: '\"', close: '\"', notIn: ['string', 'comment'] }\r\n ],\r\n surroundingPairs: [\r\n { open: '{', close: '}' },\r\n { open: '[', close: ']' },\r\n { open: '(', close: ')' },\r\n { open: '\"\"\"', close: '\"\"\"' },\r\n { open: '\"', close: '\"' }\r\n ],\r\n folding: {\r\n offSide: true\r\n }\r\n};\r\nvar language = {\r\n // Set defaultToken to invalid to see what you do not tokenize yet\r\n defaultToken: 'invalid',\r\n tokenPostfix: '.gql',\r\n keywords: [\r\n 'null',\r\n 'true',\r\n 'false',\r\n 'query',\r\n 'mutation',\r\n 'subscription',\r\n 'extend',\r\n 'schema',\r\n 'directive',\r\n 'scalar',\r\n 'type',\r\n 'interface',\r\n 'union',\r\n 'enum',\r\n 'input',\r\n 'implements',\r\n 'fragment',\r\n 'on'\r\n ],\r\n typeKeywords: ['Int', 'Float', 'String', 'Boolean', 'ID'],\r\n directiveLocations: [\r\n 'SCHEMA',\r\n 'SCALAR',\r\n 'OBJECT',\r\n 'FIELD_DEFINITION',\r\n 'ARGUMENT_DEFINITION',\r\n 'INTERFACE',\r\n 'UNION',\r\n 'ENUM',\r\n 'ENUM_VALUE',\r\n 'INPUT_OBJECT',\r\n 'INPUT_FIELD_DEFINITION',\r\n 'QUERY',\r\n 'MUTATION',\r\n 'SUBSCRIPTION',\r\n 'FIELD',\r\n 'FRAGMENT_DEFINITION',\r\n 'FRAGMENT_SPREAD',\r\n 'INLINE_FRAGMENT',\r\n 'VARIABLE_DEFINITION'\r\n ],\r\n operators: ['=', '!', '?', ':', '&', '|'],\r\n // we include these common regular expressions\r\n symbols: /[=!?:&|]+/,\r\n // https://facebook.github.io/graphql/draft/#sec-String-Value\r\n escapes: /\\\\(?:[\"\\\\\\/bfnrt]|u[0-9A-Fa-f]{4})/,\r\n // The main tokenizer for our languages\r\n tokenizer: {\r\n root: [\r\n // fields and argument names\r\n [\r\n /[a-z_][\\w$]*/,\r\n {\r\n cases: {\r\n '@keywords': 'keyword',\r\n '@default': 'key.identifier'\r\n }\r\n }\r\n ],\r\n // identify typed input variables\r\n [\r\n /[$][\\w$]*/,\r\n {\r\n cases: {\r\n '@keywords': 'keyword',\r\n '@default': 'argument.identifier'\r\n }\r\n }\r\n ],\r\n // to show class names nicely\r\n [\r\n /[A-Z][\\w\\$]*/,\r\n {\r\n cases: {\r\n '@typeKeywords': 'keyword',\r\n '@default': 'type.identifier'\r\n }\r\n }\r\n ],\r\n // whitespace\r\n { include: '@whitespace' },\r\n // delimiters and operators\r\n [/[{}()\\[\\]]/, '@brackets'],\r\n [/@symbols/, { cases: { '@o
/***/ })
}]);