mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-09-07 13:16:38 +02:00
22 lines
6.3 KiB
JavaScript
22 lines
6.3 KiB
JavaScript
|
/*
|
||
|
* 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_cameligo_cameligo_js"],{
|
||
|
|
||
|
/***/ "./node_modules/monaco-editor/esm/vs/basic-languages/cameligo/cameligo.js":
|
||
|
/*!********************************************************************************!*\
|
||
|
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/cameligo/cameligo.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 blockComment: ['(*', '*)']\r\n },\r\n brackets: [\r\n ['{', '}'],\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: '>' },\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 ]\r\n};\r\nvar language = {\r\n defaultToken: '',\r\n tokenPostfix: '.cameligo',\r\n ignoreCase: true,\r\n brackets: [\r\n { open: '{', close: '}', token: 'delimiter.curly' },\r\n { open: '[', close: ']', token: 'delimiter.square' },\r\n { open: '(', close: ')', token: 'delimiter.parenthesis' },\r\n { open: '<', close: '>', token: 'delimiter.angle' }\r\n ],\r\n keywords: [\r\n 'abs',\r\n 'begin',\r\n 'Bytes',\r\n 'Crypto',\r\n 'Current',\r\n 'else',\r\n 'end',\r\n 'failwith',\r\n 'false',\r\n 'fun',\r\n 'if',\r\n 'in',\r\n 'let',\r\n 'let%entry',\r\n 'let%init',\r\n 'List',\r\n 'list',\r\n 'Map',\r\n 'map',\r\n 'match',\r\n 'match%nat',\r\n 'mod',\r\n 'not',\r\n 'operation',\r\n 'Operation',\r\n 'of',\r\n 'Set',\r\n 'set',\r\n 'sender',\r\n 'source',\r\n 'String',\r\n 'then',\r\n 'true',\r\n 'type',\r\n 'with'\r\n ],\r\n typeKeywords: ['int', 'unit', 'string', 'tz'],\r\n operators: [\r\n '=',\r\n '>',\r\n '<',\r\n '<=',\r\n '>=',\r\n '<>',\r\n ':',\r\n ':=',\r\n 'and',\r\n 'mod',\r\n 'or',\r\n '+',\r\n '-',\r\n '*',\r\n '/',\r\n '@',\r\n '&',\r\n '^',\r\n '%',\r\n '->',\r\n '<-'\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 // identifiers and keywords\r\n [\r\n /[a-zA-Z_][\\w]*/,\r\n {\r\n cases: {\r\n '@keywords': { token: 'keyword.$0' },\r\n '@default': '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)/, '@brackets'],\r\n [\r\n /@symbols/,\r\n {\r\n cases: {\r\n '@operators': 'delimiter',\r\n '@default': ''\r\n }\r\n }\r\n ],\r\n // numbers\r\n [/\\d*\\.\\d+([eE][\\-+]?\\d+)?/, 'number.float'],\r\n [/\\$[0-9a-fA-F]{1,16}/, 'number.hex'],\r\n [/\\d+/, 'number'],\r\n // delimiter: after number bec
|
||
|
|
||
|
/***/ })
|
||
|
|
||
|
}]);
|