mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-09-07 05:14:42 +02:00
22 lines
7.6 KiB
JavaScript
22 lines
7.6 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_mips_mips_js"],{
|
||
|
|
||
|
/***/ "./node_modules/monaco-editor/esm/vs/basic-languages/mips/mips.js":
|
||
|
/*!************************************************************************!*\
|
||
|
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/mips/mips.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 wordPattern: /(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#%\\^\\&\\*\\(\\)\\=\\$\\-\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)/g,\r\n comments: {\r\n blockComment: ['###', '###'],\r\n lineComment: '#'\r\n },\r\n folding: {\r\n markers: {\r\n start: new RegExp('^\\\\s*#region\\\\b'),\r\n end: new RegExp('^\\\\s*#endregion\\\\b')\r\n }\r\n }\r\n};\r\nvar language = {\r\n defaultToken: '',\r\n ignoreCase: false,\r\n tokenPostfix: '.mips',\r\n regEx: /\\/(?!\\/\\/)(?:[^\\/\\\\]|\\\\.)*\\/[igm]*/,\r\n keywords: [\r\n '.data',\r\n '.text',\r\n 'syscall',\r\n 'trap',\r\n 'add',\r\n 'addu',\r\n 'addi',\r\n 'addiu',\r\n 'and',\r\n 'andi',\r\n 'div',\r\n 'divu',\r\n 'mult',\r\n 'multu',\r\n 'nor',\r\n 'or',\r\n 'ori',\r\n 'sll',\r\n 'slv',\r\n 'sra',\r\n 'srav',\r\n 'srl',\r\n 'srlv',\r\n 'sub',\r\n 'subu',\r\n 'xor',\r\n 'xori',\r\n 'lhi',\r\n 'lho',\r\n 'lhi',\r\n 'llo',\r\n 'slt',\r\n 'slti',\r\n 'sltu',\r\n 'sltiu',\r\n 'beq',\r\n 'bgtz',\r\n 'blez',\r\n 'bne',\r\n 'j',\r\n 'jal',\r\n 'jalr',\r\n 'jr',\r\n 'lb',\r\n 'lbu',\r\n 'lh',\r\n 'lhu',\r\n 'lw',\r\n 'li',\r\n 'la',\r\n 'sb',\r\n 'sh',\r\n 'sw',\r\n 'mfhi',\r\n 'mflo',\r\n 'mthi',\r\n 'mtlo',\r\n 'move'\r\n ],\r\n // we include these common regular expressions\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 // identifiers and keywords\r\n [/\\$[a-zA-Z_]\\w*/, 'variable.predefined'],\r\n [\r\n /[.a-zA-Z_]\\w*/,\r\n {\r\n cases: {\r\n this: 'variable.predefined',\r\n '@keywords': { token: 'keyword.$0' },\r\n '@default': ''\r\n }\r\n }\r\n ],\r\n // whitespace\r\n [/[ \\t\\r\\n]+/, ''],\r\n // Comments\r\n [/#.*$/, 'comment'],\r\n // regular expressions\r\n ['///', { token: 'regexp', next: '@hereregexp' }],\r\n [/^(\\s*)(@regEx)/, ['', 'regexp']],\r\n [/(\\,)(\\s*)(@regEx)/, ['delimiter', '', 'regexp']],\r\n [/(\\:)(\\s*)(@regEx)/, ['delimiter', '', 'regexp']],\r\n // delimiters\r\n [/@symbols/, 'delimiter'],\r\n // numbers\r\n [/\\d+[eE]([\\-+]?\\d+)?/, 'number.float'],\r\n [/\\d+\\.\\d+([eE][\\-+]?\\d+)?/, 'number.float'],\r\n [/0[xX][0-9a-fA-F]+/, 'number.hex'],\r\n [/0[0-7]+(?!\\d)/, 'number.octal'],\r\n [/\\d+/, 'number'],\r\n // delimiter: after number because of .\\d floats\r\n [/[,.]/, 'delimiter'],\r\n // strings:\r\n [/\"\"\"/, 'string', '@herestring.\"\"\"'],\r\n [/'''/, 'string', \"@herestring.'''\"],\r\n [\r\n
|
||
|
|
||
|
/***/ })
|
||
|
|
||
|
}]);
|