mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-09-07 05:14:42 +02:00
22 lines
5.4 KiB
JavaScript
22 lines
5.4 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_sb_sb_js"],{
|
||
|
|
||
|
/***/ "./node_modules/monaco-editor/esm/vs/basic-languages/sb/sb.js":
|
||
|
/*!********************************************************************!*\
|
||
|
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/sb/sb.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 ['If', 'EndIf'],\r\n ['While', 'EndWhile'],\r\n ['For', 'EndFor'],\r\n ['Sub', 'EndSub']\r\n ],\r\n autoClosingPairs: [\r\n { open: '\"', close: '\"', notIn: ['string', 'comment'] },\r\n { open: '(', close: ')', notIn: ['string', 'comment'] },\r\n { open: '[', close: ']', notIn: ['string', 'comment'] }\r\n ]\r\n};\r\nvar language = {\r\n defaultToken: '',\r\n tokenPostfix: '.sb',\r\n ignoreCase: true,\r\n brackets: [\r\n { token: 'delimiter.array', open: '[', close: ']' },\r\n { token: 'delimiter.parenthesis', open: '(', close: ')' },\r\n // Special bracket statement pairs\r\n { token: 'keyword.tag-if', open: 'If', close: 'EndIf' },\r\n { token: 'keyword.tag-while', open: 'While', close: 'EndWhile' },\r\n { token: 'keyword.tag-for', open: 'For', close: 'EndFor' },\r\n { token: 'keyword.tag-sub', open: 'Sub', close: 'EndSub' }\r\n ],\r\n keywords: [\r\n 'Else',\r\n 'ElseIf',\r\n 'EndFor',\r\n 'EndIf',\r\n 'EndSub',\r\n 'EndWhile',\r\n 'For',\r\n 'Goto',\r\n 'If',\r\n 'Step',\r\n 'Sub',\r\n 'Then',\r\n 'To',\r\n 'While'\r\n ],\r\n tagwords: ['If', 'Sub', 'While', 'For'],\r\n operators: ['>', '<', '<>', '<=', '>=', 'And', 'Or', '+', '-', '*', '/', '='],\r\n // we include these common regular expressions\r\n identifier: /[a-zA-Z_][\\w]*/,\r\n symbols: /[=><:+\\-*\\/%\\.,]+/,\r\n escapes: /\\\\(?:[abfnrtv\\\\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,\r\n // The main tokenizer for our languages\r\n tokenizer: {\r\n root: [\r\n // whitespace\r\n { include: '@whitespace' },\r\n // classes\r\n [/(@identifier)(?=[.])/, 'type'],\r\n // identifiers, tagwords, and keywords\r\n [\r\n /@identifier/,\r\n {\r\n cases: {\r\n '@keywords': { token: 'keyword.$0' },\r\n '@operators': 'operator',\r\n '@default': 'variable.name'\r\n }\r\n }\r\n ],\r\n // methods, properties, and events\r\n [\r\n /([.])(@identifier)/,\r\n {\r\n cases: {\r\n $2: ['delimiter', 'type.member'],\r\n '@default': ''\r\n }\r\n }\r\n ],\r\n // numbers\r\n [/\\d*\\.\\d+/, 'number.float'],\r\n [/\\d+/, 'number'],\r\n // delimiters and operators\r\n [/[()\\[\\]]/, '@brackets'],\r\n [\r\n /@symbols/,\r\n {\r\n cases: {\r\n '@operators': 'operator',\r\n '@default': 'delimiter'\r\n }\r\n }\r\n ],\r\n // strings\r\n [/\"([^\"\\\\]|\\\\.)*$/, 'string.invalid'],\r\n [/\"/, 'string', '@string']\r\n ],\r\n whitespace: [\r\n [/[ \\t\\r\\n]+/, ''],\r\n [/(\\').*$/, 'comment']\r\n ],\r\n
|
||
|
|
||
|
/***/ })
|
||
|
|
||
|
}]);
|