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

22 lines
6.8 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_lexon_lexon_js"],{
/***/ "./node_modules/monaco-editor/esm/vs/basic-languages/lexon/lexon.js":
/*!**************************************************************************!*\
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/lexon/lexon.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: 'COMMENT'\r\n // blockComment: ['COMMENT', '.'],\r\n },\r\n brackets: [['(', ')']],\r\n autoClosingPairs: [\r\n { open: '{', close: '}' },\r\n { open: '[', close: ']' },\r\n { open: '(', close: ')' },\r\n { open: '\"', close: '\"' },\r\n { open: ':', close: '.' }\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 { open: \"'\", close: \"'\" },\r\n { open: ':', close: '.' }\r\n ],\r\n folding: {\r\n markers: {\r\n start: new RegExp('^\\\\s*(::\\\\s*|COMMENT\\\\s+)#region'),\r\n end: new RegExp('^\\\\s*(::\\\\s*|COMMENT\\\\s+)#endregion')\r\n }\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: '.lexon',\r\n ignoreCase: true,\r\n keywords: [\r\n 'lexon',\r\n 'lex',\r\n 'clause',\r\n 'terms',\r\n 'contracts',\r\n 'may',\r\n 'pay',\r\n 'pays',\r\n 'appoints',\r\n 'into',\r\n 'to'\r\n ],\r\n typeKeywords: ['amount', 'person', 'key', 'time', 'date', 'asset', 'text'],\r\n operators: [\r\n 'less',\r\n 'greater',\r\n 'equal',\r\n 'le',\r\n 'gt',\r\n 'or',\r\n 'and',\r\n 'add',\r\n 'added',\r\n 'subtract',\r\n 'subtracted',\r\n 'multiply',\r\n 'multiplied',\r\n 'times',\r\n 'divide',\r\n 'divided',\r\n 'is',\r\n 'be',\r\n 'certified'\r\n ],\r\n // we include these common regular expressions\r\n symbols: /[=><!~?:&|+\\-*\\/\\^%]+/,\r\n // The main tokenizer for our languages\r\n tokenizer: {\r\n root: [\r\n // comment\r\n [/^(\\s*)(comment:?(?:\\s.*|))$/, ['', 'comment']],\r\n // special identifier cases\r\n [\r\n /\"/,\r\n {\r\n token: 'identifier.quote',\r\n bracket: '@open',\r\n next: '@quoted_identifier'\r\n }\r\n ],\r\n [\r\n 'LEX$',\r\n {\r\n token: 'keyword',\r\n bracket: '@open',\r\n next: '@identifier_until_period'\r\n }\r\n ],\r\n ['LEXON', { token: 'keyword', bracket: '@open', next: '@semver' }],\r\n [\r\n ':',\r\n {\r\n token: 'delimiter',\r\n bracket: '@open',\r\n next: '@identifier_until_period'\r\n }\r\n ],\r\n // identifiers and keywords\r\n [\r\n /[a-z_$][\\w$]*/,\r\n {\r\n cases: {\r\n '@operators': 'operator',\r\n '@typeKeywords': 'keyword.type',\r\n '@keywords': 'keyword',\r\n '@default': 'identifier'\r\n }\r\n }\r\n ],\r\n // whitespace\r\n { include: '@whit
/***/ })
}]);