├── .gitignore ├── src └── web │ ├── main.js │ ├── favicon.png │ ├── js │ ├── ContextMenu.js │ ├── iris │ │ ├── System.js │ │ ├── Dictionary.js │ │ ├── CodeTemplates.js │ │ ├── Scanner.js │ │ ├── Language.js │ │ ├── CompletionItemDictionary.js │ │ └── CompletionItemProvider.js │ ├── TopMenu.js │ ├── Prompt.js │ ├── AppDirector.js │ └── Explorer.js │ ├── lib │ └── vs │ │ ├── base │ │ └── browser │ │ │ └── ui │ │ │ └── codicons │ │ │ └── codicon │ │ │ └── codicon.ttf │ │ └── basic-languages │ │ ├── azcli │ │ └── azcli.js │ │ ├── ini │ │ └── ini.js │ │ ├── csp │ │ └── csp.js │ │ ├── bat │ │ └── bat.js │ │ ├── scheme │ │ └── scheme.js │ │ ├── sb │ │ └── sb.js │ │ ├── pla │ │ └── pla.js │ │ ├── flow9 │ │ └── flow9.js │ │ ├── dockerfile │ │ └── dockerfile.js │ │ ├── pascaligo │ │ └── pascaligo.js │ │ ├── graphql │ │ └── graphql.js │ │ ├── lua │ │ └── lua.js │ │ ├── bicep │ │ └── bicep.js │ │ ├── cameligo │ │ └── cameligo.js │ │ ├── lexon │ │ └── lexon.js │ │ ├── xml │ │ └── xml.js │ │ ├── objective-c │ │ └── objective-c.js │ │ ├── sparql │ │ └── sparql.js │ │ ├── sophia │ │ └── sophia.js │ │ ├── mips │ │ └── mips.js │ │ ├── go │ │ └── go.js │ │ ├── m3 │ │ └── m3.js │ │ ├── fsharp │ │ └── fsharp.js │ │ ├── yaml │ │ └── yaml.js │ │ ├── hcl │ │ └── hcl.js │ │ ├── shell │ │ └── shell.js │ │ └── java │ │ └── java.js │ └── style │ ├── editor.css │ ├── explorer.css │ ├── tablayout.css │ ├── reset.css │ ├── utils.css │ ├── vars.css │ ├── menu.css │ └── layout.css ├── readme ├── Logo.png ├── Screeshot.jpg ├── InstructionsA.png └── InstructionsB.png ├── .gitattributes └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | 3 | -------------------------------------------------------------------------------- /src/web/main.js: -------------------------------------------------------------------------------- 1 | import {App} from './js/App.js'; 2 | 3 | let app = new App(); 4 | 5 | -------------------------------------------------------------------------------- /readme/Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeanConnelly/CloudStudio/HEAD/readme/Logo.png -------------------------------------------------------------------------------- /src/web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeanConnelly/CloudStudio/HEAD/src/web/favicon.png -------------------------------------------------------------------------------- /readme/Screeshot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeanConnelly/CloudStudio/HEAD/readme/Screeshot.jpg -------------------------------------------------------------------------------- /readme/InstructionsA.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeanConnelly/CloudStudio/HEAD/readme/InstructionsA.png -------------------------------------------------------------------------------- /readme/InstructionsB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeanConnelly/CloudStudio/HEAD/readme/InstructionsB.png -------------------------------------------------------------------------------- /src/web/js/ContextMenu.js: -------------------------------------------------------------------------------- 1 | export class ContextMenu { 2 | 3 | constructor(ev,items) { 4 | console.dir(ev.target) 5 | } 6 | 7 | } -------------------------------------------------------------------------------- /src/web/lib/vs/base/browser/ui/codicons/codicon/codicon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SeanConnelly/CloudStudio/HEAD/src/web/lib/vs/base/browser/ui/codicons/codicon/codicon.ttf -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.cls linguist-language=ObjectScript 2 | *.mac linguist-language=ObjectScript 3 | *.int linguist-language=ObjectScript 4 | *.inc linguist-language=ObjectScript 5 | *.csp linguist-language=Html 6 | 7 | *.sh text eol=lf 8 | *.cls text eol=lf 9 | *.mac text eol=lf 10 | *.int text eol=lf 11 | *.inc text eol=lf 12 | -------------------------------------------------------------------------------- /src/web/js/iris/System.js: -------------------------------------------------------------------------------- 1 | export class System { 2 | 3 | static Query(ns,queryString,parameters) { 4 | 5 | return fetch(`/api/atelier/v1/${encodeURI(ns)}/action/query`,{ 6 | method: 'POST', 7 | headers: { 'Content-Type': 'application/json' }, 8 | body: JSON.stringify({ 9 | query: queryString, 10 | parameters: parameters 11 | }) 12 | }) 13 | .then( res => res.json()) 14 | } 15 | 16 | } 17 | 18 | -------------------------------------------------------------------------------- /src/web/js/iris/Dictionary.js: -------------------------------------------------------------------------------- 1 | import {System} from './System.js'; 2 | import {AppDirector} from "../AppDirector.js"; 3 | 4 | export class Dictionary { 5 | 6 | static getClassStaticMembers(ns,className) { 7 | let query = `SELECT Name,FormalSpec FROM %Dictionary.CompiledMethod WHERE parent=? AND ClassMethod=1` 8 | return System.Query(ns,query,[className]) 9 | } 10 | 11 | } 12 | 13 | /* 14 | Dictionary.getClassStaticMembers('IWS','User.SampleClass').then( response => { 15 | console.log('response ------'); 16 | console.log(response.result.content); 17 | console.log('-------'); 18 | }) 19 | */ 20 | -------------------------------------------------------------------------------- /src/web/js/TopMenu.js: -------------------------------------------------------------------------------- 1 | export class TopMenu { 2 | 3 | constructor() { 4 | this.topMenu = document.getElementById("top-menu"); 5 | this.initialiseListeners(); 6 | } 7 | 8 | initialiseListeners() { 9 | this.topMenu.addEventListener("mouseover", ev => { 10 | let menuItems = this.topMenu.querySelectorAll(".menu-top-button"); 11 | let el = ev.target; 12 | for (let i=0;i1)) { 19 | lineNo--; 20 | line = ''; 21 | model.getLineContent(lineNo).split('"').map( (src,index) => { 22 | if (index === 1) line += '\n'; 23 | if (index % 2 === 0) line += src; 24 | }); 25 | str += line; 26 | } 27 | 28 | let match; 29 | do { 30 | match = re.exec(str); 31 | if (match) { 32 | if (match[1] === vname) return { className: match[2], methodName: match[3]} 33 | } 34 | } while (match); 35 | 36 | let className='' 37 | let args = line.split('(')[1].split(')')[0].split(','); 38 | args.forEach( arg => { 39 | let [argName,argType] = arg.split(' As '); 40 | if (vname === argName.trim() && argType) className = argType.trim(); 41 | }) 42 | 43 | return {className: className, methodName: ''} 44 | } 45 | 46 | //very simple member scanner, used to augment new member to a classes own member list fetched from the server 47 | static scanForClassMembers(model) { 48 | let members = {}; 49 | let re = /^(Method .+?\(|Parameter .+?=|Property .+? )/g; 50 | model.getLinesContent().forEach( line => { 51 | if (line.charAt(0) === " ") return; 52 | if (line.charAt(0) === "\t") return; 53 | line = line.replace("("," "); 54 | let [type,name] = line.split(" "); 55 | if (members[type] === undefined) members[type] = []; 56 | members[type].push(name); 57 | }) 58 | return members; 59 | } 60 | 61 | } -------------------------------------------------------------------------------- /src/web/js/Prompt.js: -------------------------------------------------------------------------------- 1 | import {AppDirector} from "./AppDirector.js"; 2 | 3 | const $div = (...cl) => { let div = document.createElement('div'); if (cl) div.classList.add(...cl); return div} 4 | 5 | export class PromptBox { 6 | 7 | constructor(title,extension,docType) { 8 | this.el=$div(); 9 | this.docType=docType; 10 | this.extension=extension; 11 | this.el.innerHTML = this.make(title,extension); 12 | document.body.appendChild(this.el); 13 | this.el.querySelector('#promptBoxOKButton').addEventListener('click', ev => this.onPromptBoxOKButton()); 14 | this.el.querySelector('#promptBoxCancelButton').addEventListener('click', ev => this.onPromptBoxCancelButton()); 15 | this.el.querySelector('#newItemName').focus(); 16 | } 17 | 18 | onPromptBoxOKButton() { 19 | let newItemName = this.el.querySelector('#newItemName').value; 20 | AppDirector.set('Action.MakeNew',{"name":newItemName,"type":this.extension,"docType":this.docType}); 21 | this.el.remove(); 22 | } 23 | 24 | onPromptBoxCancelButton() { 25 | this.el.remove(); 26 | } 27 | 28 | make(title,extension) { 29 | return ` 30 |
31 |
32 |
33 |
34 |
35 |
${title}
36 |
37 |  .${extension} 38 |
39 | 46 |
47 |
48 |
49 |
50 |
51 | ` 52 | } 53 | 54 | } -------------------------------------------------------------------------------- /src/web/style/vars.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --red: hsl(0, 100%, 30%); 3 | --brown: hsl(15, 100%, 30%); 4 | --orange: hsl(30, 100%, 30%); 5 | --yellow: hsl(60, 100%, 40%); 6 | --green: hsl(100, 100%, 30%); 7 | --mint: hsl(170, 100%, 30%); 8 | --cyan: hsl(185, 100%, 30%); 9 | --blue: hsl(210, 100%, 30%); 10 | --magenta: hsl(300, 100%, 30%); 11 | 12 | --appPrimaryColor: var(--cyan); 13 | --appAccentColor: var(--cyan); 14 | 15 | --appTextColor: #fff; 16 | --appTextColorOne: #eee; 17 | --appTextColorTwo: #ddd; 18 | --appTextColorThree: #ccc; 19 | --appTextColorFour: #bbb; 20 | --appTextColorFive: #aaa; 21 | 22 | --appBackground: #000; 23 | --appBackgroundOne: #111; 24 | --appBackgroundTwo: #222; 25 | --appBackgroundThree: #333; 26 | --appBackgroundFour: #444; 27 | --appBackgroundFive: #555; 28 | 29 | --appViewportBackground: #000; 30 | --appExplorerBackground: #222; 31 | 32 | --appScrollbarThumb: #111; 33 | --appScrollbarTrack: #222; 34 | } 35 | 36 | [light-theme="on"] { 37 | --red: hsl(0, 100%, 50%); 38 | --brown: hsl(15, 100%, 50%); 39 | --orange: hsl(30, 100%, 50%); 40 | --yellow: hsl(60, 100%, 50%); 41 | --green: hsl(100, 100%, 50%); 42 | --mint: hsl(170, 100%, 50%); 43 | --cyan: hsl(185, 100%, 50%); 44 | --blue: hsl(210, 100%, 50%); 45 | --magenta: hsl(300, 100%, 50%); 46 | 47 | --appTextColor: #000; 48 | --appTextColorOne: #111; 49 | --appTextColorTwo: #222; 50 | --appTextColorThree: #333; 51 | --appTextColorFour: #444; 52 | --appTextColorFive: #555; 53 | 54 | --appBackground: #fff; 55 | --appBackgroundOne: #eee; 56 | --appBackgroundTwo: #ddd; 57 | --appBackgroundThree: #ccc; 58 | --appBackgroundFour: #bbb; 59 | --appBackgroundFive: #aaa; 60 | 61 | --appViewportBackground: #ddd; 62 | --appExplorerBackground: #fcfcfc; 63 | 64 | --appScrollbarThumb: #ddd; 65 | --appScrollbarTrack: #fcfcfc; 66 | } 67 | 68 | .red { color: var(--red); } 69 | .brown { color: var(--brown); } 70 | .orange { color: var(--orange); } 71 | .yellow { color: var(--yellow); } 72 | .green { color: var(--green); } 73 | .mint { color: var(--mint); } 74 | .cyan { color: var(--cyan); } 75 | .blue { color: var(--blue); } 76 | .magenta { color: var(--magenta); } 77 | 78 | .bg-red { background-color: var(--red); } 79 | .bg-brown { background-color: var(--brown); } 80 | .bg-orange { background-color: var(--orange); } 81 | .bg-yellow { background-color: var(--yellow); } 82 | .bg-green { background-color: var(--green); } 83 | .bg-mint { background-color: var(--mint); } 84 | .bg-cyan { background-color: var(--cyan); } 85 | .bg-blue { background-color: var(--blue); } 86 | .bg-magenta { background-color: var(--magenta); } -------------------------------------------------------------------------------- /src/web/js/iris/Language.js: -------------------------------------------------------------------------------- 1 | monaco.languages.register({id: 'ObjectScript'}); 2 | 3 | monaco.languages.setMonarchTokensProvider('ObjectScript', { 4 | 5 | ignoreCase: true, 6 | 7 | classwords: [ 8 | 'As','Include','IncludeGenerator','Class','ClassMethod','Extends', 'Parameter', 'Index', 'Property', 'Method', 'XData' 9 | ], 10 | 11 | keywords: [ 12 | 'break','b ','continue','close','c ','do','d ','else','e ','for','f ', 13 | 'goto','g ','halt','h ','hang','i ','if','job','j ','kill','k ', 14 | 'merge','m ','new','n ','open','o ','quit','q ', 15 | 'read','r ','return','ret','set','s ', 16 | 'tstart','ts','tcommit','tc','trollback','tro','throw', 17 | 'use','u ','view','v ','write','w ','xecute','x ', 18 | 'zkill','zl','znspace','zn','ztrap','zwrite','zw','zzdump','zzwrite','#dim' 19 | ], 20 | 21 | functions: [ 22 | '' 23 | ], 24 | 25 | typeKeywords: [ 26 | '%string', '%integer' 27 | ], 28 | 29 | operators: [ 30 | "+","-","*","/","\\","**","#", 31 | "_","'",",",":","^", 32 | "=","'=",">","'>","<=","<","'<",">=", 33 | "[","]","]]", 34 | "&","&&","!","||","@","?" 35 | ], 36 | 37 | symbols: /[\^\:\,\+\-\*\/\\\*\#\_\'\=\>\<\]\[\&\!\|\@\?]{1}/, 38 | 39 | tokenizer: { 40 | 41 | root: [ 42 | { include: '@whitespace' }, 43 | { include: 'common' }, 44 | [ /"((?:""|[^"])*)"/, 'string' ], 45 | [ /[{}()\[\]]/, 'delimiter' ], 46 | [ /@symbols/, { cases: { '@operators': 'operator', '@default' : '' } } ], 47 | ], 48 | 49 | common: [ 50 | 51 | [/##class/,'keyword'], 52 | 53 | [/[A-Za-z%][\w$]*/, { 54 | cases: { 55 | '@classwords': 'keyword', 56 | '@keywords': 'keyword', 57 | '@typeKeywords': 'keyword' 58 | } 59 | }], 60 | 61 | //$$$MACROS 62 | [/\${3}[a-z0-9]+/,'keyword'], 63 | 64 | //..MEMBERS 65 | [/\.{2}#?[a-z%][a-z0-9]*/,'type'], 66 | 67 | //$INTRINSIC FUNCTIONS 68 | [/\$[a-z]+/,'tag'] 69 | 70 | ], 71 | 72 | whitespace: [ 73 | [/[ \t\r\n]+/, ''], 74 | [/\/\*/, 'comment', '@mlcomment'], 75 | [/\/\/.*$/, 'comment'], 76 | [/;.*$/, 'comment'], 77 | [/#;.*$/, 'comment'] 78 | ], 79 | 80 | mlcomment: [ 81 | [/[^\/*]+/, 'comment'], 82 | [/\*\//, 'comment', '@pop'], 83 | [/[\/*]/, 'comment'], 84 | ] 85 | 86 | } 87 | 88 | }) 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /src/web/style/menu.css: -------------------------------------------------------------------------------- 1 | button { 2 | color: #bbb; 3 | border: 0; 4 | outline: none; 5 | } 6 | button:hover { 7 | --background: var(--appBackgroundThree); 8 | cursor: pointer; 9 | } 10 | .icon-button { 11 | color: #999; 12 | text-align: center; 13 | margin: 3px; 14 | min-width: 2em; 15 | padding-bottom: 1px; 16 | background-color: var(--appBackgroundThree); 17 | box-shadow: 1px 1px 2px var(--appBackgroundOne); 18 | padding-left: 1em; 19 | padding-right: 1em; 20 | } 21 | .icon-button:hover { 22 | background-color: var(--appPrimaryColor); 23 | color: var(--appTextColor); 24 | } 25 | .menu-button { 26 | padding-left: 0.5em; 27 | padding-right: 0.5em; 28 | } 29 | .menu-button:hover { 30 | background: rgba(0, 0, 0, 0.25); 31 | cursor: pointer; 32 | } 33 | 34 | .menu-top-button { 35 | color: var(--appTextColorTwo); 36 | padding-left: 0.5em; 37 | padding-right: 0.5em; 38 | } 39 | .menu-top-button:focus { 40 | background-color: var(--appPrimaryColor); 41 | color: var(--appTextColor); 42 | } 43 | 44 | .menu-top-button:focus .menu-below { 45 | display: block; 46 | } 47 | .menu-top-button:focus .menu-below-right { 48 | display: block; 49 | } 50 | 51 | .menu-tab-button { 52 | padding-left: 0.5em; 53 | color: #888; 54 | } 55 | .menu-tab-button:focus { 56 | color: var(--appPrimaryColor); 57 | } 58 | .menu-tab-button:hover { 59 | color: var(--appPrimaryColor); 60 | } 61 | .menu-tab-button:focus .menu-below { 62 | display: block; 63 | } 64 | .menu-tab-button:focus .menu-below-right { 65 | display: block; 66 | } 67 | .sub-menu { 68 | z-index:100; 69 | position: absolute; 70 | background-color: var(--appBackgroundThree); 71 | color: var(--appTextColor); 72 | min-width: 12em; 73 | text-align: left; 74 | padding: 0.5em 0; 75 | box-shadow: 3px 5px 6px 0 rgba(0,0,0,10); 76 | border-left: 0.1em solid var(--appBackgroundFour); 77 | border-right: 0.1em solid var(--appBackgroundFour); 78 | white-space: nowrap; 79 | } 80 | 81 | .sub-menu > div:not(.menu-divide):not(.disabled) { 82 | cursor: pointer; 83 | padding: 0.2em 0.5em; 84 | } 85 | .sub-menu > div:hover:not(.menu-divide):not(.disabled) { 86 | background-color: var(--appPrimaryColor); 87 | color: var(--appTextColor); 88 | } 89 | .sub-menu > div:active { 90 | background-color: var(--appPrimaryColor); 91 | color: var(--appTextColor); 92 | } 93 | .sub-menu > div:hover .sub-menu { 94 | display: block; 95 | } 96 | .menu-below { 97 | left: 0; 98 | top: 22px; 99 | display: none; 100 | } 101 | .menu-below-right { 102 | right: 0; 103 | top: 22px; 104 | display: none; 105 | } 106 | .menu-aside { 107 | top: 0; 108 | left: 11.8em; 109 | z-index: 10000 !important; 110 | display: none; 111 | } 112 | .menu-aside::before { 113 | content: ''; 114 | position: absolute; 115 | top: 0; 116 | bottom: 0; 117 | left: -4em; 118 | width: 4em; 119 | } 120 | .menu-aside:hover { 121 | display: none; 122 | } 123 | .menu-divide { 124 | border-top: 0.05em solid var(--appBackgroundFive); 125 | background-color: var(--appBackgroundFive); 126 | border-bottom: 0.05em solid var(--appBackgroundFive); 127 | margin: 0.5em; 128 | } 129 | .disabled { 130 | color: #888; 131 | padding: 0.2em 0.5em; 132 | } 133 | .menu-view--color { 134 | display: inline-block; 135 | width: 2em; 136 | margin-right: 0.5em; 137 | } -------------------------------------------------------------------------------- /src/web/lib/vs/basic-languages/azcli/azcli.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/azcli/azcli", ["require"],(require)=>{ 8 | var moduleExports = (() => { 9 | var __defProp = Object.defineProperty; 10 | var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 11 | var __getOwnPropNames = Object.getOwnPropertyNames; 12 | var __hasOwnProp = Object.prototype.hasOwnProperty; 13 | var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); 14 | var __export = (target, all) => { 15 | for (var name in all) 16 | __defProp(target, name, { get: all[name], enumerable: true }); 17 | }; 18 | var __reExport = (target, module, copyDefault, desc) => { 19 | if (module && typeof module === "object" || typeof module === "function") { 20 | for (let key of __getOwnPropNames(module)) 21 | if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) 22 | __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable }); 23 | } 24 | return target; 25 | }; 26 | var __toCommonJS = /* @__PURE__ */ ((cache) => { 27 | return (module, temp) => { 28 | return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp); 29 | }; 30 | })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); 31 | 32 | // src/basic-languages/azcli/azcli.ts 33 | var azcli_exports = {}; 34 | __export(azcli_exports, { 35 | conf: () => conf, 36 | language: () => language 37 | }); 38 | var conf = { 39 | comments: { 40 | lineComment: "#" 41 | } 42 | }; 43 | var language = { 44 | defaultToken: "keyword", 45 | ignoreCase: true, 46 | tokenPostfix: ".azcli", 47 | str: /[^#\s]/, 48 | tokenizer: { 49 | root: [ 50 | { include: "@comment" }, 51 | [ 52 | /\s-+@str*\s*/, 53 | { 54 | cases: { 55 | "@eos": { token: "key.identifier", next: "@popall" }, 56 | "@default": { token: "key.identifier", next: "@type" } 57 | } 58 | } 59 | ], 60 | [ 61 | /^-+@str*\s*/, 62 | { 63 | cases: { 64 | "@eos": { token: "key.identifier", next: "@popall" }, 65 | "@default": { token: "key.identifier", next: "@type" } 66 | } 67 | } 68 | ] 69 | ], 70 | type: [ 71 | { include: "@comment" }, 72 | [ 73 | /-+@str*\s*/, 74 | { 75 | cases: { 76 | "@eos": { token: "key.identifier", next: "@popall" }, 77 | "@default": "key.identifier" 78 | } 79 | } 80 | ], 81 | [ 82 | /@str+\s*/, 83 | { 84 | cases: { 85 | "@eos": { token: "string", next: "@popall" }, 86 | "@default": "string" 87 | } 88 | } 89 | ] 90 | ], 91 | comment: [ 92 | [ 93 | /#.*$/, 94 | { 95 | cases: { 96 | "@eos": { token: "comment", next: "@popall" } 97 | } 98 | } 99 | ] 100 | ] 101 | } 102 | }; 103 | return __toCommonJS(azcli_exports); 104 | })(); 105 | return moduleExports; 106 | }); 107 | -------------------------------------------------------------------------------- /src/web/lib/vs/basic-languages/ini/ini.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/ini/ini", ["require"],(require)=>{ 8 | var moduleExports = (() => { 9 | var __defProp = Object.defineProperty; 10 | var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 11 | var __getOwnPropNames = Object.getOwnPropertyNames; 12 | var __hasOwnProp = Object.prototype.hasOwnProperty; 13 | var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); 14 | var __export = (target, all) => { 15 | for (var name in all) 16 | __defProp(target, name, { get: all[name], enumerable: true }); 17 | }; 18 | var __reExport = (target, module, copyDefault, desc) => { 19 | if (module && typeof module === "object" || typeof module === "function") { 20 | for (let key of __getOwnPropNames(module)) 21 | if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) 22 | __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable }); 23 | } 24 | return target; 25 | }; 26 | var __toCommonJS = /* @__PURE__ */ ((cache) => { 27 | return (module, temp) => { 28 | return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp); 29 | }; 30 | })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); 31 | 32 | // src/basic-languages/ini/ini.ts 33 | var ini_exports = {}; 34 | __export(ini_exports, { 35 | conf: () => conf, 36 | language: () => language 37 | }); 38 | var conf = { 39 | comments: { 40 | lineComment: "#" 41 | }, 42 | brackets: [ 43 | ["{", "}"], 44 | ["[", "]"], 45 | ["(", ")"] 46 | ], 47 | autoClosingPairs: [ 48 | { open: "{", close: "}" }, 49 | { open: "[", close: "]" }, 50 | { open: "(", close: ")" }, 51 | { open: '"', close: '"' }, 52 | { open: "'", close: "'" } 53 | ], 54 | surroundingPairs: [ 55 | { open: "{", close: "}" }, 56 | { open: "[", close: "]" }, 57 | { open: "(", close: ")" }, 58 | { open: '"', close: '"' }, 59 | { open: "'", close: "'" } 60 | ] 61 | }; 62 | var language = { 63 | defaultToken: "", 64 | tokenPostfix: ".ini", 65 | escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, 66 | tokenizer: { 67 | root: [ 68 | [/^\[[^\]]*\]/, "metatag"], 69 | [/(^\w+)(\s*)(\=)/, ["key", "", "delimiter"]], 70 | { include: "@whitespace" }, 71 | [/\d+/, "number"], 72 | [/"([^"\\]|\\.)*$/, "string.invalid"], 73 | [/'([^'\\]|\\.)*$/, "string.invalid"], 74 | [/"/, "string", '@string."'], 75 | [/'/, "string", "@string.'"] 76 | ], 77 | whitespace: [ 78 | [/[ \t\r\n]+/, ""], 79 | [/^\s*[#;].*$/, "comment"] 80 | ], 81 | string: [ 82 | [/[^\\"']+/, "string"], 83 | [/@escapes/, "string.escape"], 84 | [/\\./, "string.escape.invalid"], 85 | [ 86 | /["']/, 87 | { 88 | cases: { 89 | "$#==$S2": { token: "string", next: "@pop" }, 90 | "@default": "string" 91 | } 92 | } 93 | ] 94 | ] 95 | } 96 | }; 97 | return __toCommonJS(ini_exports); 98 | })(); 99 | return moduleExports; 100 | }); 101 | -------------------------------------------------------------------------------- /src/web/lib/vs/basic-languages/csp/csp.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/csp/csp", ["require"],(require)=>{ 8 | var moduleExports = (() => { 9 | var __defProp = Object.defineProperty; 10 | var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 11 | var __getOwnPropNames = Object.getOwnPropertyNames; 12 | var __hasOwnProp = Object.prototype.hasOwnProperty; 13 | var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); 14 | var __export = (target, all) => { 15 | for (var name in all) 16 | __defProp(target, name, { get: all[name], enumerable: true }); 17 | }; 18 | var __reExport = (target, module, copyDefault, desc) => { 19 | if (module && typeof module === "object" || typeof module === "function") { 20 | for (let key of __getOwnPropNames(module)) 21 | if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) 22 | __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable }); 23 | } 24 | return target; 25 | }; 26 | var __toCommonJS = /* @__PURE__ */ ((cache) => { 27 | return (module, temp) => { 28 | return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp); 29 | }; 30 | })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); 31 | 32 | // src/basic-languages/csp/csp.ts 33 | var csp_exports = {}; 34 | __export(csp_exports, { 35 | conf: () => conf, 36 | language: () => language 37 | }); 38 | var conf = { 39 | brackets: [], 40 | autoClosingPairs: [], 41 | surroundingPairs: [] 42 | }; 43 | var language = { 44 | keywords: [], 45 | typeKeywords: [], 46 | tokenPostfix: ".csp", 47 | operators: [], 48 | symbols: /[=> { 51 | let el = document.getElementById(elId); 52 | if (el) { 53 | if (formatter) val = formatter(val); 54 | document.getElementById(elId).innerText = val; 55 | } else { 56 | console.log("Failed to bind value=",val,"to missing id=",elId); 57 | } 58 | 59 | }) 60 | } 61 | 62 | static push(key,value,persist = true,blur = false) { 63 | if (blur) document.activeElement.blur(); 64 | if (!AppDirector.data[key]) AppDirector.data[key] = []; 65 | if (!AppDirector.data[key].includes(value)) { 66 | AppDirector.data[key].push(value); 67 | if (persist) localStorage.setItem(key, JSON.stringify(AppDirector.data[key])); 68 | } 69 | if (AppDirector.data[key] === undefined) return; 70 | for (let id in AppDirector.subs[key]) { 71 | AppDirector.subs[key][id](value); 72 | } 73 | } 74 | 75 | static removeItem(key,value,persist = true) { 76 | AppDirector.data[key] = AppDirector.data[key].filter( v2 => (v2 !== value) ) 77 | if (persist) localStorage.setItem(key, JSON.stringify(AppDirector.data[key])); 78 | } 79 | 80 | static on(key,cb) { 81 | let id = AppDirector.index++; 82 | if (AppDirector.subs === undefined) AppDirector.subs = {}; 83 | if (AppDirector.subs[key] === undefined) AppDirector.subs[key] = {}; 84 | AppDirector.subs[key][id] = cb; 85 | return { off : () => delete AppDirector.subs[key][id] } 86 | } 87 | 88 | static restoreData() { 89 | Object.keys(localStorage).map( key => { 90 | if (key.indexOf('Model.') > -1) { 91 | let value; 92 | try { 93 | JSON.parse(localStorage.getItem(key)).map( val => { 94 | AppDirector.push(key,val); 95 | }) 96 | } catch (e) { 97 | value = localStorage.getItem(key); 98 | if (value !== '') AppDirector.set(key,value); 99 | } 100 | } 101 | }) 102 | } 103 | 104 | static resetData() { 105 | localStorage.clear(); 106 | } 107 | 108 | } 109 | 110 | //attach director to the main window for simplified menu event bindings 111 | window.CloudStudioDirector = AppDirector; -------------------------------------------------------------------------------- /src/web/style/layout.css: -------------------------------------------------------------------------------- 1 | html,body { 2 | font-family: "Segoe UI"; 3 | font-size: 12px; 4 | overflow: hidden; 5 | } 6 | 7 | .viewport { 8 | position: absolute; 9 | top: 0; 10 | left: 0; 11 | right: 0; 12 | bottom: 0; 13 | background-color: var(--appViewportBackground); 14 | user-select: none; 15 | } 16 | .menu-bar { 17 | position: absolute; 18 | top: 0; 19 | left: 0; 20 | right: 0; 21 | height: 24px; 22 | background-color: var(--appBackgroundTwo); 23 | padding-left: 0.25em; 24 | } 25 | .explorer { 26 | position: absolute; 27 | top: 26px; 28 | left: 0; 29 | bottom: 0; 30 | width: 220px; 31 | background-color: var(--appExplorerBackground); 32 | } 33 | .explorer-dragbar { 34 | position: absolute; 35 | top: 26px; 36 | bottom: 0; 37 | left: 219px; 38 | width: 4px; 39 | z-index: 10; 40 | } 41 | .explorer-dragbar:hover { 42 | background-color: white; 43 | opacity: 20%; 44 | cursor: e-resize; 45 | } 46 | .editors { 47 | position: absolute; 48 | top: 26px; 49 | right: 0; 50 | bottom: 24px; 51 | left: 222px; 52 | background-color: var(--appBackgroundTwo); 53 | } 54 | .output-dragbar { 55 | position: absolute; 56 | top: -5px; 57 | left: 0; 58 | right:0; 59 | height: 10px; 60 | z-index: 1000; 61 | } 62 | .status-window[data-state='open'] > .output-dragbar:hover { 63 | background-color: white; 64 | opacity: 20%; 65 | cursor: n-resize; 66 | } 67 | 68 | .status-window { 69 | position: absolute; 70 | right: 0; 71 | left: 222px; 72 | bottom: 0; 73 | height: 22px; 74 | background-color: var(--appBackgroundOne); 75 | } 76 | .output-window { 77 | position: absolute; 78 | right: 0; 79 | left: 0; 80 | bottom: 0; 81 | top: 22px; 82 | background-color: var(--appBackgroundOne); 83 | color: var(--appTextColor); 84 | overflow: auto; 85 | padding: 1em; 86 | user-select: text; 87 | } 88 | .terminal-window { 89 | position: absolute; 90 | right: 0; 91 | left: 0; 92 | bottom: 0; 93 | top: 22px; 94 | user-select: auto; 95 | } 96 | 97 | .status-bar { 98 | position: absolute; 99 | top: 0; 100 | left: 0; 101 | right: 0; 102 | height: 22px; 103 | background-color: var(--appBackgroundTwo); 104 | color: #bbb; 105 | } 106 | .status-bar-tabs { 107 | align-items: center; 108 | justify-content: left; 109 | } 110 | .status-bar-tabs button { 111 | margin-left: 2px; 112 | } 113 | .status-bar-status { 114 | align-items: center; 115 | justify-content: center; 116 | } 117 | .status-bar-info { 118 | align-items: center; 119 | justify-content: right; 120 | } 121 | .status-bar-info div { 122 | margin-right: 1em; 123 | } 124 | .status-bar-button { 125 | font-size: 90%; 126 | color: var(--appTextColorFour); 127 | text-align: center; 128 | margin: 2px; 129 | padding-bottom: 1px; 130 | background-color: var(--appBackgroundThree); 131 | box-shadow: 1px 1px 2px var(--appBackgroundTwo); 132 | padding-left: 1em; 133 | padding-right: 1em; 134 | } 135 | .status-bar-button:hover { 136 | background-color: var(--appPrimaryColor); 137 | color: white; 138 | } 139 | 140 | .prompt-box { 141 | color: var(--appTextColor); 142 | z-index:1000; 143 | } 144 | .prompt-box--panel { 145 | background-color: var(--appBackgroundTwo); 146 | border: 1px solid var(--appBackgroundFive); 147 | box-shadow: 2px 2px 4px var(--appBackground); 148 | } 149 | .prompt-box--title { 150 | background-color: var(--appBackgroundThree); 151 | padding: 0.5em 1em; 152 | } 153 | .prompt-box--body { 154 | padding: 1em; 155 | } 156 | .prompt-box--footer { 157 | padding: 1em; 158 | } 159 | .prompt-box--button { 160 | background-color: var(--appBackgroundFive); 161 | border: 1px solid var(--appBackgroundFive); 162 | padding: 0.14em 0.4em; 163 | min-width: 4em; 164 | text-align: center; 165 | } 166 | 167 | .prompt-box--button:hover, .prompt-box--button:focus { 168 | border: 1px solid var(--appTextColor); 169 | } 170 | 171 | .prompt-box--input { 172 | background-color: var(--appBackgroundFive); 173 | padding: 0.5em; 174 | min-width: 360px; 175 | } 176 | 177 | ::-webkit-scrollbar { 178 | width: 10px; 179 | height: 10px; 180 | } 181 | ::-webkit-scrollbar-thumb { 182 | background: var(--appScrollbarThumb); 183 | } 184 | ::-webkit-scrollbar-track { 185 | background-color: var(--appScrollbarTrack); 186 | } 187 | ::-webkit-scrollbar-corner { 188 | background-color: var(--appScrollbarTrack); 189 | } 190 | -------------------------------------------------------------------------------- /src/web/lib/vs/basic-languages/bat/bat.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/bat/bat", ["require"],(require)=>{ 8 | var moduleExports = (() => { 9 | var __defProp = Object.defineProperty; 10 | var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 11 | var __getOwnPropNames = Object.getOwnPropertyNames; 12 | var __hasOwnProp = Object.prototype.hasOwnProperty; 13 | var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); 14 | var __export = (target, all) => { 15 | for (var name in all) 16 | __defProp(target, name, { get: all[name], enumerable: true }); 17 | }; 18 | var __reExport = (target, module, copyDefault, desc) => { 19 | if (module && typeof module === "object" || typeof module === "function") { 20 | for (let key of __getOwnPropNames(module)) 21 | if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) 22 | __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable }); 23 | } 24 | return target; 25 | }; 26 | var __toCommonJS = /* @__PURE__ */ ((cache) => { 27 | return (module, temp) => { 28 | return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp); 29 | }; 30 | })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); 31 | 32 | // src/basic-languages/bat/bat.ts 33 | var bat_exports = {}; 34 | __export(bat_exports, { 35 | conf: () => conf, 36 | language: () => language 37 | }); 38 | var conf = { 39 | comments: { 40 | lineComment: "REM" 41 | }, 42 | brackets: [ 43 | ["{", "}"], 44 | ["[", "]"], 45 | ["(", ")"] 46 | ], 47 | autoClosingPairs: [ 48 | { open: "{", close: "}" }, 49 | { open: "[", close: "]" }, 50 | { open: "(", close: ")" }, 51 | { open: '"', close: '"' } 52 | ], 53 | surroundingPairs: [ 54 | { open: "[", close: "]" }, 55 | { open: "(", close: ")" }, 56 | { open: '"', close: '"' } 57 | ], 58 | folding: { 59 | markers: { 60 | start: new RegExp("^\\s*(::\\s*|REM\\s+)#region"), 61 | end: new RegExp("^\\s*(::\\s*|REM\\s+)#endregion") 62 | } 63 | } 64 | }; 65 | var language = { 66 | defaultToken: "", 67 | ignoreCase: true, 68 | tokenPostfix: ".bat", 69 | brackets: [ 70 | { token: "delimiter.bracket", open: "{", close: "}" }, 71 | { token: "delimiter.parenthesis", open: "(", close: ")" }, 72 | { token: "delimiter.square", open: "[", close: "]" } 73 | ], 74 | keywords: /call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/, 75 | symbols: /[=>{ 8 | var moduleExports = (() => { 9 | var __defProp = Object.defineProperty; 10 | var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 11 | var __getOwnPropNames = Object.getOwnPropertyNames; 12 | var __hasOwnProp = Object.prototype.hasOwnProperty; 13 | var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); 14 | var __export = (target, all) => { 15 | for (var name in all) 16 | __defProp(target, name, { get: all[name], enumerable: true }); 17 | }; 18 | var __reExport = (target, module, copyDefault, desc) => { 19 | if (module && typeof module === "object" || typeof module === "function") { 20 | for (let key of __getOwnPropNames(module)) 21 | if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) 22 | __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable }); 23 | } 24 | return target; 25 | }; 26 | var __toCommonJS = /* @__PURE__ */ ((cache) => { 27 | return (module, temp) => { 28 | return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp); 29 | }; 30 | })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); 31 | 32 | // src/basic-languages/scheme/scheme.ts 33 | var scheme_exports = {}; 34 | __export(scheme_exports, { 35 | conf: () => conf, 36 | language: () => language 37 | }); 38 | var conf = { 39 | comments: { 40 | lineComment: ";", 41 | blockComment: ["#|", "|#"] 42 | }, 43 | brackets: [ 44 | ["(", ")"], 45 | ["{", "}"], 46 | ["[", "]"] 47 | ], 48 | autoClosingPairs: [ 49 | { open: "{", close: "}" }, 50 | { open: "[", close: "]" }, 51 | { open: "(", close: ")" }, 52 | { open: '"', close: '"' } 53 | ], 54 | surroundingPairs: [ 55 | { open: "{", close: "}" }, 56 | { open: "[", close: "]" }, 57 | { open: "(", close: ")" }, 58 | { open: '"', close: '"' } 59 | ] 60 | }; 61 | var language = { 62 | defaultToken: "", 63 | ignoreCase: true, 64 | tokenPostfix: ".scheme", 65 | brackets: [ 66 | { open: "(", close: ")", token: "delimiter.parenthesis" }, 67 | { open: "{", close: "}", token: "delimiter.curly" }, 68 | { open: "[", close: "]", token: "delimiter.square" } 69 | ], 70 | keywords: [ 71 | "case", 72 | "do", 73 | "let", 74 | "loop", 75 | "if", 76 | "else", 77 | "when", 78 | "cons", 79 | "car", 80 | "cdr", 81 | "cond", 82 | "lambda", 83 | "lambda*", 84 | "syntax-rules", 85 | "format", 86 | "set!", 87 | "quote", 88 | "eval", 89 | "append", 90 | "list", 91 | "list?", 92 | "member?", 93 | "load" 94 | ], 95 | constants: ["#t", "#f"], 96 | operators: ["eq?", "eqv?", "equal?", "and", "or", "not", "null?"], 97 | tokenizer: { 98 | root: [ 99 | [/#[xXoObB][0-9a-fA-F]+/, "number.hex"], 100 | [/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/, "number.float"], 101 | [ 102 | /(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/, 103 | ["keyword", "white", "variable"] 104 | ], 105 | { include: "@whitespace" }, 106 | { include: "@strings" }, 107 | [ 108 | /[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/, 109 | { 110 | cases: { 111 | "@keywords": "keyword", 112 | "@constants": "constant", 113 | "@operators": "operators", 114 | "@default": "identifier" 115 | } 116 | } 117 | ] 118 | ], 119 | comment: [ 120 | [/[^\|#]+/, "comment"], 121 | [/#\|/, "comment", "@push"], 122 | [/\|#/, "comment", "@pop"], 123 | [/[\|#]/, "comment"] 124 | ], 125 | whitespace: [ 126 | [/[ \t\r\n]+/, "white"], 127 | [/#\|/, "comment", "@comment"], 128 | [/;.*$/, "comment"] 129 | ], 130 | strings: [ 131 | [/"$/, "string", "@popall"], 132 | [/"(?=.)/, "string", "@multiLineString"] 133 | ], 134 | multiLineString: [ 135 | [/[^\\"]+$/, "string", "@popall"], 136 | [/[^\\"]+/, "string"], 137 | [/\\./, "string.escape"], 138 | [/"/, "string", "@popall"], 139 | [/\\$/, "string"] 140 | ] 141 | } 142 | }; 143 | return __toCommonJS(scheme_exports); 144 | })(); 145 | return moduleExports; 146 | }); 147 | -------------------------------------------------------------------------------- /src/web/lib/vs/basic-languages/sb/sb.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/sb/sb", ["require"],(require)=>{ 8 | var moduleExports = (() => { 9 | var __defProp = Object.defineProperty; 10 | var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 11 | var __getOwnPropNames = Object.getOwnPropertyNames; 12 | var __hasOwnProp = Object.prototype.hasOwnProperty; 13 | var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); 14 | var __export = (target, all) => { 15 | for (var name in all) 16 | __defProp(target, name, { get: all[name], enumerable: true }); 17 | }; 18 | var __reExport = (target, module, copyDefault, desc) => { 19 | if (module && typeof module === "object" || typeof module === "function") { 20 | for (let key of __getOwnPropNames(module)) 21 | if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) 22 | __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable }); 23 | } 24 | return target; 25 | }; 26 | var __toCommonJS = /* @__PURE__ */ ((cache) => { 27 | return (module, temp) => { 28 | return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp); 29 | }; 30 | })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); 31 | 32 | // src/basic-languages/sb/sb.ts 33 | var sb_exports = {}; 34 | __export(sb_exports, { 35 | conf: () => conf, 36 | language: () => language 37 | }); 38 | var conf = { 39 | comments: { 40 | lineComment: "'" 41 | }, 42 | brackets: [ 43 | ["(", ")"], 44 | ["[", "]"], 45 | ["If", "EndIf"], 46 | ["While", "EndWhile"], 47 | ["For", "EndFor"], 48 | ["Sub", "EndSub"] 49 | ], 50 | autoClosingPairs: [ 51 | { open: '"', close: '"', notIn: ["string", "comment"] }, 52 | { open: "(", close: ")", notIn: ["string", "comment"] }, 53 | { open: "[", close: "]", notIn: ["string", "comment"] } 54 | ] 55 | }; 56 | var language = { 57 | defaultToken: "", 58 | tokenPostfix: ".sb", 59 | ignoreCase: true, 60 | brackets: [ 61 | { token: "delimiter.array", open: "[", close: "]" }, 62 | { token: "delimiter.parenthesis", open: "(", close: ")" }, 63 | { token: "keyword.tag-if", open: "If", close: "EndIf" }, 64 | { token: "keyword.tag-while", open: "While", close: "EndWhile" }, 65 | { token: "keyword.tag-for", open: "For", close: "EndFor" }, 66 | { token: "keyword.tag-sub", open: "Sub", close: "EndSub" } 67 | ], 68 | keywords: [ 69 | "Else", 70 | "ElseIf", 71 | "EndFor", 72 | "EndIf", 73 | "EndSub", 74 | "EndWhile", 75 | "For", 76 | "Goto", 77 | "If", 78 | "Step", 79 | "Sub", 80 | "Then", 81 | "To", 82 | "While" 83 | ], 84 | tagwords: ["If", "Sub", "While", "For"], 85 | operators: [">", "<", "<>", "<=", ">=", "And", "Or", "+", "-", "*", "/", "="], 86 | identifier: /[a-zA-Z_][\w]*/, 87 | symbols: /[=><:+\-*\/%\.,]+/, 88 | escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, 89 | tokenizer: { 90 | root: [ 91 | { include: "@whitespace" }, 92 | [/(@identifier)(?=[.])/, "type"], 93 | [ 94 | /@identifier/, 95 | { 96 | cases: { 97 | "@keywords": { token: "keyword.$0" }, 98 | "@operators": "operator", 99 | "@default": "variable.name" 100 | } 101 | } 102 | ], 103 | [ 104 | /([.])(@identifier)/, 105 | { 106 | cases: { 107 | $2: ["delimiter", "type.member"], 108 | "@default": "" 109 | } 110 | } 111 | ], 112 | [/\d*\.\d+/, "number.float"], 113 | [/\d+/, "number"], 114 | [/[()\[\]]/, "@brackets"], 115 | [ 116 | /@symbols/, 117 | { 118 | cases: { 119 | "@operators": "operator", 120 | "@default": "delimiter" 121 | } 122 | } 123 | ], 124 | [/"([^"\\]|\\.)*$/, "string.invalid"], 125 | [/"/, "string", "@string"] 126 | ], 127 | whitespace: [ 128 | [/[ \t\r\n]+/, ""], 129 | [/(\').*$/, "comment"] 130 | ], 131 | string: [ 132 | [/[^\\"]+/, "string"], 133 | [/@escapes/, "string.escape"], 134 | [/\\./, "string.escape.invalid"], 135 | [/"C?/, "string", "@pop"] 136 | ] 137 | } 138 | }; 139 | return __toCommonJS(sb_exports); 140 | })(); 141 | return moduleExports; 142 | }); 143 | -------------------------------------------------------------------------------- /src/web/js/iris/CompletionItemDictionary.js: -------------------------------------------------------------------------------- 1 | import {Dictionary} from './Dictionary.js'; 2 | import {System} from "./System.js"; 3 | import {AppDirector} from "../AppDirector.js"; 4 | import {Scanner} from "./Scanner.js" 5 | 6 | export class CompletionItemDictionary { 7 | 8 | static clsItems = {'_root':[]}; 9 | 10 | static addClassItem(className) { 11 | let subNames = className.split('.'); 12 | subNames.pop() //discard '.cls' 13 | let rootName = subNames[0]; 14 | CompletionItemDictionary.addClassCompletionItem('_root',rootName); 15 | for (let i=1; i<(subNames.length); i++) { 16 | let parentSubName = subNames.slice(0,i).join('.'); 17 | let childSubName = subNames[i]; 18 | let lastChild = (i === (subNames.length-1)); 19 | CompletionItemDictionary.addClassCompletionItem(parentSubName,childSubName,lastChild) 20 | if (parentSubName === "%Library") { 21 | CompletionItemDictionary.addClassCompletionItem('_root','%' + childSubName,true) 22 | } 23 | } 24 | } 25 | 26 | static addClassCompletionItem(parentName,childSubName,lastChild = false,promote = false) { 27 | 28 | // prevent duplications via the items own child array declaration 29 | let parentPath = (parentName === '_root') ? '' : parentName + '.'; 30 | if (CompletionItemDictionary.clsItems[parentPath + childSubName] !== undefined) return; 31 | CompletionItemDictionary.clsItems[parentPath + childSubName] = []; 32 | 33 | //make suggestion and push to clsItems 34 | let suggestion = {insertText: childSubName,label: childSubName} 35 | 36 | if (lastChild) { 37 | suggestion.kind = 8; 38 | } else { 39 | suggestion.insertText += '.'; 40 | suggestion.kind = 5; 41 | } 42 | 43 | if (promote) suggestion.sortText = '~' + childSubName; 44 | 45 | suggestion.command = {id:'editor.action.triggerSuggest',title:'editor.action.triggerSuggest'}; 46 | 47 | CompletionItemDictionary.clsItems[parentName].push( suggestion ); 48 | 49 | } 50 | 51 | static getClassStaticMembers(ns,className) { 52 | let query = `SELECT Name,FormalSpec FROM %Dictionary.CompiledMethod WHERE parent=? AND ClassMethod=1` 53 | return System.Query(ns,query,[className]).then( results => { 54 | let suggestions = []; 55 | results.result.content.map( result => { 56 | let sortText = ((result.Name.charAt(0) === '%')&&(result.Name !== '%New')) ? ('~' + result.Name) : result.Name; 57 | let suggestion = { insertText: (result.Name + '('), kind: 5, label: result.Name, sortText: sortText }; 58 | if (result.Name === '%New') suggestion.preselect = true; 59 | suggestions.push(suggestion) 60 | }) 61 | return suggestions; 62 | }) 63 | } 64 | 65 | static getClassMembers(ns,className) { 66 | let query = `SELECT Name,ReturnType,'5' As Kind FROM %Dictionary.CompiledMethod WHERE parent=? AND ClassMethod=0 and Runnable=1 UNION ALL SELECT Name,RuntimeType,'6' As Kind FROM %Dictionary.CompiledProperty WHERE parent=? UNION ALL SELECT Name,'','13' As Kind FROM %Dictionary.CompiledParameter WHERE parent=?` 67 | return System.Query(ns,query,[className,className,className]).then( results => { 68 | let suggestions = []; 69 | results.result.content.map( result => { 70 | let sortText = (result.Kind === '13' ? '~~' : '') + (result.Kind === '5' ? '~' : '') + result.Name; 71 | let label = (result.Kind === '13' ? '#' : '') + result.Name + (result.Kind === '5' ? '()' : ''); 72 | let suggestion = { insertText: label, kind: +result.Kind, label: label, sortText: sortText }; 73 | if (result.Name === '%New') suggestion.preselect = true; 74 | suggestions.push(suggestion) 75 | }) 76 | return suggestions; 77 | }) 78 | } 79 | 80 | static getThisMembersFromLocalModel(model) { 81 | let suggestions = []; 82 | let members = Scanner.scanForClassMembers(model); 83 | if (members.Method) members.Method.forEach( name => { 84 | suggestions.push({ insertText: name + '()', kind: 5, label: name + '()' }) 85 | }) 86 | if (members.ClassMethod) members.ClassMethod.forEach( name => { 87 | suggestions.push({ insertText: name + '()', kind: 11, label: name + '()' }) 88 | }) 89 | if (members.Property) members.Property.forEach( name => { 90 | suggestions.push({ insertText: name, kind: 6, label: name }) 91 | }) 92 | if (members.Parameter) members.Parameter.forEach( name => { 93 | suggestions.push({ insertText: '#' + name, kind: 13, label: '#' + name }) 94 | }) 95 | return suggestions; 96 | } 97 | 98 | static getStaticMethodReturnType(ns,className,methodName) { 99 | let query = `SELECT ReturnType FROM %Dictionary.CompiledMethod WHERE parent=? and Name=?` 100 | return System.Query(ns,query,[className,methodName]).then( results => { 101 | return results.result.content; 102 | }) 103 | } 104 | 105 | } -------------------------------------------------------------------------------- /src/web/lib/vs/basic-languages/pla/pla.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/pla/pla", ["require"],(require)=>{ 8 | var moduleExports = (() => { 9 | var __defProp = Object.defineProperty; 10 | var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 11 | var __getOwnPropNames = Object.getOwnPropertyNames; 12 | var __hasOwnProp = Object.prototype.hasOwnProperty; 13 | var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); 14 | var __export = (target, all) => { 15 | for (var name in all) 16 | __defProp(target, name, { get: all[name], enumerable: true }); 17 | }; 18 | var __reExport = (target, module, copyDefault, desc) => { 19 | if (module && typeof module === "object" || typeof module === "function") { 20 | for (let key of __getOwnPropNames(module)) 21 | if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) 22 | __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable }); 23 | } 24 | return target; 25 | }; 26 | var __toCommonJS = /* @__PURE__ */ ((cache) => { 27 | return (module, temp) => { 28 | return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp); 29 | }; 30 | })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); 31 | 32 | // src/basic-languages/pla/pla.ts 33 | var pla_exports = {}; 34 | __export(pla_exports, { 35 | conf: () => conf, 36 | language: () => language 37 | }); 38 | var conf = { 39 | comments: { 40 | lineComment: "#" 41 | }, 42 | brackets: [ 43 | ["[", "]"], 44 | ["<", ">"], 45 | ["(", ")"] 46 | ], 47 | autoClosingPairs: [ 48 | { open: "[", close: "]" }, 49 | { open: "<", close: ">" }, 50 | { open: "(", close: ")" } 51 | ], 52 | surroundingPairs: [ 53 | { open: "[", close: "]" }, 54 | { open: "<", close: ">" }, 55 | { open: "(", close: ")" } 56 | ] 57 | }; 58 | var language = { 59 | defaultToken: "", 60 | tokenPostfix: ".pla", 61 | brackets: [ 62 | { open: "[", close: "]", token: "delimiter.square" }, 63 | { open: "<", close: ">", token: "delimiter.angle" }, 64 | { open: "(", close: ")", token: "delimiter.parenthesis" } 65 | ], 66 | keywords: [ 67 | ".i", 68 | ".o", 69 | ".mv", 70 | ".ilb", 71 | ".ob", 72 | ".label", 73 | ".type", 74 | ".phase", 75 | ".pair", 76 | ".symbolic", 77 | ".symbolic-output", 78 | ".kiss", 79 | ".p", 80 | ".e", 81 | ".end" 82 | ], 83 | comment: /#.*$/, 84 | identifier: /[a-zA-Z]+[a-zA-Z0-9_\-]*/, 85 | plaContent: /[01\-~\|]+/, 86 | tokenizer: { 87 | root: [ 88 | { include: "@whitespace" }, 89 | [/@comment/, "comment"], 90 | [ 91 | /\.([a-zA-Z_\-]+)/, 92 | { 93 | cases: { 94 | "@eos": { token: "keyword.$1" }, 95 | "@keywords": { 96 | cases: { 97 | ".type": { token: "keyword.$1", next: "@type" }, 98 | "@default": { token: "keyword.$1", next: "@keywordArg" } 99 | } 100 | }, 101 | "@default": { token: "keyword.$1" } 102 | } 103 | } 104 | ], 105 | [/@identifier/, "identifier"], 106 | [/@plaContent/, "string"] 107 | ], 108 | whitespace: [[/[ \t\r\n]+/, ""]], 109 | type: [{ include: "@whitespace" }, [/\w+/, { token: "type", next: "@pop" }]], 110 | keywordArg: [ 111 | [ 112 | /[ \t\r\n]+/, 113 | { 114 | cases: { 115 | "@eos": { token: "", next: "@pop" }, 116 | "@default": "" 117 | } 118 | } 119 | ], 120 | [/@comment/, "comment", "@pop"], 121 | [ 122 | /[<>()\[\]]/, 123 | { 124 | cases: { 125 | "@eos": { token: "@brackets", next: "@pop" }, 126 | "@default": "@brackets" 127 | } 128 | } 129 | ], 130 | [ 131 | /\-?\d+/, 132 | { 133 | cases: { 134 | "@eos": { token: "number", next: "@pop" }, 135 | "@default": "number" 136 | } 137 | } 138 | ], 139 | [ 140 | /@identifier/, 141 | { 142 | cases: { 143 | "@eos": { token: "identifier", next: "@pop" }, 144 | "@default": "identifier" 145 | } 146 | } 147 | ], 148 | [ 149 | /[;=]/, 150 | { 151 | cases: { 152 | "@eos": { token: "delimiter", next: "@pop" }, 153 | "@default": "delimiter" 154 | } 155 | } 156 | ] 157 | ] 158 | } 159 | }; 160 | return __toCommonJS(pla_exports); 161 | })(); 162 | return moduleExports; 163 | }); 164 | -------------------------------------------------------------------------------- /src/web/lib/vs/basic-languages/flow9/flow9.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/flow9/flow9", ["require"],(require)=>{ 8 | var moduleExports = (() => { 9 | var __defProp = Object.defineProperty; 10 | var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 11 | var __getOwnPropNames = Object.getOwnPropertyNames; 12 | var __hasOwnProp = Object.prototype.hasOwnProperty; 13 | var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); 14 | var __export = (target, all) => { 15 | for (var name in all) 16 | __defProp(target, name, { get: all[name], enumerable: true }); 17 | }; 18 | var __reExport = (target, module, copyDefault, desc) => { 19 | if (module && typeof module === "object" || typeof module === "function") { 20 | for (let key of __getOwnPropNames(module)) 21 | if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) 22 | __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable }); 23 | } 24 | return target; 25 | }; 26 | var __toCommonJS = /* @__PURE__ */ ((cache) => { 27 | return (module, temp) => { 28 | return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp); 29 | }; 30 | })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); 31 | 32 | // src/basic-languages/flow9/flow9.ts 33 | var flow9_exports = {}; 34 | __export(flow9_exports, { 35 | conf: () => conf, 36 | language: () => language 37 | }); 38 | var conf = { 39 | comments: { 40 | blockComment: ["/*", "*/"], 41 | lineComment: "//" 42 | }, 43 | brackets: [ 44 | ["{", "}"], 45 | ["[", "]"], 46 | ["(", ")"] 47 | ], 48 | autoClosingPairs: [ 49 | { open: "{", close: "}", notIn: ["string"] }, 50 | { open: "[", close: "]", notIn: ["string"] }, 51 | { open: "(", close: ")", notIn: ["string"] }, 52 | { open: '"', close: '"', notIn: ["string"] }, 53 | { open: "'", close: "'", notIn: ["string"] } 54 | ], 55 | surroundingPairs: [ 56 | { open: "{", close: "}" }, 57 | { open: "[", close: "]" }, 58 | { open: "(", close: ")" }, 59 | { open: '"', close: '"' }, 60 | { open: "'", close: "'" }, 61 | { open: "<", close: ">" } 62 | ] 63 | }; 64 | var language = { 65 | defaultToken: "", 66 | tokenPostfix: ".flow", 67 | keywords: [ 68 | "import", 69 | "require", 70 | "export", 71 | "forbid", 72 | "native", 73 | "if", 74 | "else", 75 | "cast", 76 | "unsafe", 77 | "switch", 78 | "default" 79 | ], 80 | types: [ 81 | "io", 82 | "mutable", 83 | "bool", 84 | "int", 85 | "double", 86 | "string", 87 | "flow", 88 | "void", 89 | "ref", 90 | "true", 91 | "false", 92 | "with" 93 | ], 94 | operators: [ 95 | "=", 96 | ">", 97 | "<", 98 | "<=", 99 | ">=", 100 | "==", 101 | "!", 102 | "!=", 103 | ":=", 104 | "::=", 105 | "&&", 106 | "||", 107 | "+", 108 | "-", 109 | "*", 110 | "/", 111 | "@", 112 | "&", 113 | "%", 114 | ":", 115 | "->", 116 | "\\", 117 | "$", 118 | "??", 119 | "^" 120 | ], 121 | symbols: /[@$=>](?!@symbols)/, "delimiter"], 138 | [ 139 | /@symbols/, 140 | { 141 | cases: { 142 | "@operators": "delimiter", 143 | "@default": "" 144 | } 145 | } 146 | ], 147 | [/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/, "number"], 148 | [/[;,.]/, "delimiter"], 149 | [/"([^"\\]|\\.)*$/, "string.invalid"], 150 | [/"/, "string", "@string"] 151 | ], 152 | whitespace: [ 153 | [/[ \t\r\n]+/, ""], 154 | [/\/\*/, "comment", "@comment"], 155 | [/\/\/.*$/, "comment"] 156 | ], 157 | comment: [ 158 | [/[^\/*]+/, "comment"], 159 | [/\*\//, "comment", "@pop"], 160 | [/[\/*]/, "comment"] 161 | ], 162 | string: [ 163 | [/[^\\"]+/, "string"], 164 | [/@escapes/, "string.escape"], 165 | [/\\./, "string.escape.invalid"], 166 | [/"/, "string", "@pop"] 167 | ] 168 | } 169 | }; 170 | return __toCommonJS(flow9_exports); 171 | })(); 172 | return moduleExports; 173 | }); 174 | -------------------------------------------------------------------------------- /src/web/lib/vs/basic-languages/dockerfile/dockerfile.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/dockerfile/dockerfile", ["require"],(require)=>{ 8 | var moduleExports = (() => { 9 | var __defProp = Object.defineProperty; 10 | var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 11 | var __getOwnPropNames = Object.getOwnPropertyNames; 12 | var __hasOwnProp = Object.prototype.hasOwnProperty; 13 | var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); 14 | var __export = (target, all) => { 15 | for (var name in all) 16 | __defProp(target, name, { get: all[name], enumerable: true }); 17 | }; 18 | var __reExport = (target, module, copyDefault, desc) => { 19 | if (module && typeof module === "object" || typeof module === "function") { 20 | for (let key of __getOwnPropNames(module)) 21 | if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) 22 | __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable }); 23 | } 24 | return target; 25 | }; 26 | var __toCommonJS = /* @__PURE__ */ ((cache) => { 27 | return (module, temp) => { 28 | return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp); 29 | }; 30 | })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); 31 | 32 | // src/basic-languages/dockerfile/dockerfile.ts 33 | var dockerfile_exports = {}; 34 | __export(dockerfile_exports, { 35 | conf: () => conf, 36 | language: () => language 37 | }); 38 | var conf = { 39 | brackets: [ 40 | ["{", "}"], 41 | ["[", "]"], 42 | ["(", ")"] 43 | ], 44 | autoClosingPairs: [ 45 | { open: "{", close: "}" }, 46 | { open: "[", close: "]" }, 47 | { open: "(", close: ")" }, 48 | { open: '"', close: '"' }, 49 | { open: "'", close: "'" } 50 | ], 51 | surroundingPairs: [ 52 | { open: "{", close: "}" }, 53 | { open: "[", close: "]" }, 54 | { open: "(", close: ")" }, 55 | { open: '"', close: '"' }, 56 | { open: "'", close: "'" } 57 | ] 58 | }; 59 | var language = { 60 | defaultToken: "", 61 | tokenPostfix: ".dockerfile", 62 | variable: /\${?[\w]+}?/, 63 | tokenizer: { 64 | root: [ 65 | { include: "@whitespace" }, 66 | { include: "@comment" }, 67 | [/(ONBUILD)(\s+)/, ["keyword", ""]], 68 | [/(ENV)(\s+)([\w]+)/, ["keyword", "", { token: "variable", next: "@arguments" }]], 69 | [ 70 | /(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/, 71 | { token: "keyword", next: "@arguments" } 72 | ] 73 | ], 74 | arguments: [ 75 | { include: "@whitespace" }, 76 | { include: "@strings" }, 77 | [ 78 | /(@variable)/, 79 | { 80 | cases: { 81 | "@eos": { token: "variable", next: "@popall" }, 82 | "@default": "variable" 83 | } 84 | } 85 | ], 86 | [ 87 | /\\/, 88 | { 89 | cases: { 90 | "@eos": "", 91 | "@default": "" 92 | } 93 | } 94 | ], 95 | [ 96 | /./, 97 | { 98 | cases: { 99 | "@eos": { token: "", next: "@popall" }, 100 | "@default": "" 101 | } 102 | } 103 | ] 104 | ], 105 | whitespace: [ 106 | [ 107 | /\s+/, 108 | { 109 | cases: { 110 | "@eos": { token: "", next: "@popall" }, 111 | "@default": "" 112 | } 113 | } 114 | ] 115 | ], 116 | comment: [[/(^#.*$)/, "comment", "@popall"]], 117 | strings: [ 118 | [/\\'$/, "", "@popall"], 119 | [/\\'/, ""], 120 | [/'$/, "string", "@popall"], 121 | [/'/, "string", "@stringBody"], 122 | [/"$/, "string", "@popall"], 123 | [/"/, "string", "@dblStringBody"] 124 | ], 125 | stringBody: [ 126 | [ 127 | /[^\\\$']/, 128 | { 129 | cases: { 130 | "@eos": { token: "string", next: "@popall" }, 131 | "@default": "string" 132 | } 133 | } 134 | ], 135 | [/\\./, "string.escape"], 136 | [/'$/, "string", "@popall"], 137 | [/'/, "string", "@pop"], 138 | [/(@variable)/, "variable"], 139 | [/\\$/, "string"], 140 | [/$/, "string", "@popall"] 141 | ], 142 | dblStringBody: [ 143 | [ 144 | /[^\\\$"]/, 145 | { 146 | cases: { 147 | "@eos": { token: "string", next: "@popall" }, 148 | "@default": "string" 149 | } 150 | } 151 | ], 152 | [/\\./, "string.escape"], 153 | [/"$/, "string", "@popall"], 154 | [/"/, "string", "@pop"], 155 | [/(@variable)/, "variable"], 156 | [/\\$/, "string"], 157 | [/$/, "string", "@popall"] 158 | ] 159 | } 160 | }; 161 | return __toCommonJS(dockerfile_exports); 162 | })(); 163 | return moduleExports; 164 | }); 165 | -------------------------------------------------------------------------------- /src/web/lib/vs/basic-languages/pascaligo/pascaligo.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/pascaligo/pascaligo", ["require"],(require)=>{ 8 | var moduleExports = (() => { 9 | var __defProp = Object.defineProperty; 10 | var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 11 | var __getOwnPropNames = Object.getOwnPropertyNames; 12 | var __hasOwnProp = Object.prototype.hasOwnProperty; 13 | var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); 14 | var __export = (target, all) => { 15 | for (var name in all) 16 | __defProp(target, name, { get: all[name], enumerable: true }); 17 | }; 18 | var __reExport = (target, module, copyDefault, desc) => { 19 | if (module && typeof module === "object" || typeof module === "function") { 20 | for (let key of __getOwnPropNames(module)) 21 | if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) 22 | __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable }); 23 | } 24 | return target; 25 | }; 26 | var __toCommonJS = /* @__PURE__ */ ((cache) => { 27 | return (module, temp) => { 28 | return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp); 29 | }; 30 | })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); 31 | 32 | // src/basic-languages/pascaligo/pascaligo.ts 33 | var pascaligo_exports = {}; 34 | __export(pascaligo_exports, { 35 | conf: () => conf, 36 | language: () => language 37 | }); 38 | var conf = { 39 | comments: { 40 | lineComment: "//", 41 | blockComment: ["(*", "*)"] 42 | }, 43 | brackets: [ 44 | ["{", "}"], 45 | ["[", "]"], 46 | ["(", ")"], 47 | ["<", ">"] 48 | ], 49 | autoClosingPairs: [ 50 | { open: "{", close: "}" }, 51 | { open: "[", close: "]" }, 52 | { open: "(", close: ")" }, 53 | { open: "<", close: ">" }, 54 | { open: "'", close: "'" } 55 | ], 56 | surroundingPairs: [ 57 | { open: "{", close: "}" }, 58 | { open: "[", close: "]" }, 59 | { open: "(", close: ")" }, 60 | { open: "<", close: ">" }, 61 | { open: "'", close: "'" } 62 | ] 63 | }; 64 | var language = { 65 | defaultToken: "", 66 | tokenPostfix: ".pascaligo", 67 | ignoreCase: true, 68 | brackets: [ 69 | { open: "{", close: "}", token: "delimiter.curly" }, 70 | { open: "[", close: "]", token: "delimiter.square" }, 71 | { open: "(", close: ")", token: "delimiter.parenthesis" }, 72 | { open: "<", close: ">", token: "delimiter.angle" } 73 | ], 74 | keywords: [ 75 | "begin", 76 | "block", 77 | "case", 78 | "const", 79 | "else", 80 | "end", 81 | "fail", 82 | "for", 83 | "from", 84 | "function", 85 | "if", 86 | "is", 87 | "nil", 88 | "of", 89 | "remove", 90 | "return", 91 | "skip", 92 | "then", 93 | "type", 94 | "var", 95 | "while", 96 | "with", 97 | "option", 98 | "None", 99 | "transaction" 100 | ], 101 | typeKeywords: [ 102 | "bool", 103 | "int", 104 | "list", 105 | "map", 106 | "nat", 107 | "record", 108 | "string", 109 | "unit", 110 | "address", 111 | "map", 112 | "mtz", 113 | "xtz" 114 | ], 115 | operators: [ 116 | "=", 117 | ">", 118 | "<", 119 | "<=", 120 | ">=", 121 | "<>", 122 | ":", 123 | ":=", 124 | "and", 125 | "mod", 126 | "or", 127 | "+", 128 | "-", 129 | "*", 130 | "/", 131 | "@", 132 | "&", 133 | "^", 134 | "%" 135 | ], 136 | symbols: /[=><:@\^&|+\-*\/\^%]+/, 137 | tokenizer: { 138 | root: [ 139 | [ 140 | /[a-zA-Z_][\w]*/, 141 | { 142 | cases: { 143 | "@keywords": { token: "keyword.$0" }, 144 | "@default": "identifier" 145 | } 146 | } 147 | ], 148 | { include: "@whitespace" }, 149 | [/[{}()\[\]]/, "@brackets"], 150 | [/[<>](?!@symbols)/, "@brackets"], 151 | [ 152 | /@symbols/, 153 | { 154 | cases: { 155 | "@operators": "delimiter", 156 | "@default": "" 157 | } 158 | } 159 | ], 160 | [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], 161 | [/\$[0-9a-fA-F]{1,16}/, "number.hex"], 162 | [/\d+/, "number"], 163 | [/[;,.]/, "delimiter"], 164 | [/'([^'\\]|\\.)*$/, "string.invalid"], 165 | [/'/, "string", "@string"], 166 | [/'[^\\']'/, "string"], 167 | [/'/, "string.invalid"], 168 | [/\#\d+/, "string"] 169 | ], 170 | comment: [ 171 | [/[^\(\*]+/, "comment"], 172 | [/\*\)/, "comment", "@pop"], 173 | [/\(\*/, "comment"] 174 | ], 175 | string: [ 176 | [/[^\\']+/, "string"], 177 | [/\\./, "string.escape.invalid"], 178 | [/'/, { token: "string.quote", bracket: "@close", next: "@pop" }] 179 | ], 180 | whitespace: [ 181 | [/[ \t\r\n]+/, "white"], 182 | [/\(\*/, "comment", "@comment"], 183 | [/\/\/.*$/, "comment"] 184 | ] 185 | } 186 | }; 187 | return __toCommonJS(pascaligo_exports); 188 | })(); 189 | return moduleExports; 190 | }); 191 | -------------------------------------------------------------------------------- /src/web/lib/vs/basic-languages/graphql/graphql.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/graphql/graphql", ["require"],(require)=>{ 8 | var moduleExports = (() => { 9 | var __defProp = Object.defineProperty; 10 | var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 11 | var __getOwnPropNames = Object.getOwnPropertyNames; 12 | var __hasOwnProp = Object.prototype.hasOwnProperty; 13 | var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); 14 | var __export = (target, all) => { 15 | for (var name in all) 16 | __defProp(target, name, { get: all[name], enumerable: true }); 17 | }; 18 | var __reExport = (target, module, copyDefault, desc) => { 19 | if (module && typeof module === "object" || typeof module === "function") { 20 | for (let key of __getOwnPropNames(module)) 21 | if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) 22 | __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable }); 23 | } 24 | return target; 25 | }; 26 | var __toCommonJS = /* @__PURE__ */ ((cache) => { 27 | return (module, temp) => { 28 | return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp); 29 | }; 30 | })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); 31 | 32 | // src/basic-languages/graphql/graphql.ts 33 | var graphql_exports = {}; 34 | __export(graphql_exports, { 35 | conf: () => conf, 36 | language: () => language 37 | }); 38 | var conf = { 39 | comments: { 40 | lineComment: "#" 41 | }, 42 | brackets: [ 43 | ["{", "}"], 44 | ["[", "]"], 45 | ["(", ")"] 46 | ], 47 | autoClosingPairs: [ 48 | { open: "{", close: "}" }, 49 | { open: "[", close: "]" }, 50 | { open: "(", close: ")" }, 51 | { open: '"""', close: '"""', notIn: ["string", "comment"] }, 52 | { open: '"', close: '"', notIn: ["string", "comment"] } 53 | ], 54 | surroundingPairs: [ 55 | { open: "{", close: "}" }, 56 | { open: "[", close: "]" }, 57 | { open: "(", close: ")" }, 58 | { open: '"""', close: '"""' }, 59 | { open: '"', close: '"' } 60 | ], 61 | folding: { 62 | offSide: true 63 | } 64 | }; 65 | var language = { 66 | defaultToken: "invalid", 67 | tokenPostfix: ".gql", 68 | keywords: [ 69 | "null", 70 | "true", 71 | "false", 72 | "query", 73 | "mutation", 74 | "subscription", 75 | "extend", 76 | "schema", 77 | "directive", 78 | "scalar", 79 | "type", 80 | "interface", 81 | "union", 82 | "enum", 83 | "input", 84 | "implements", 85 | "fragment", 86 | "on" 87 | ], 88 | typeKeywords: ["Int", "Float", "String", "Boolean", "ID"], 89 | directiveLocations: [ 90 | "SCHEMA", 91 | "SCALAR", 92 | "OBJECT", 93 | "FIELD_DEFINITION", 94 | "ARGUMENT_DEFINITION", 95 | "INTERFACE", 96 | "UNION", 97 | "ENUM", 98 | "ENUM_VALUE", 99 | "INPUT_OBJECT", 100 | "INPUT_FIELD_DEFINITION", 101 | "QUERY", 102 | "MUTATION", 103 | "SUBSCRIPTION", 104 | "FIELD", 105 | "FRAGMENT_DEFINITION", 106 | "FRAGMENT_SPREAD", 107 | "INLINE_FRAGMENT", 108 | "VARIABLE_DEFINITION" 109 | ], 110 | operators: ["=", "!", "?", ":", "&", "|"], 111 | symbols: /[=!?:&|]+/, 112 | escapes: /\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/, 113 | tokenizer: { 114 | root: [ 115 | [ 116 | /[a-z_][\w$]*/, 117 | { 118 | cases: { 119 | "@keywords": "keyword", 120 | "@default": "key.identifier" 121 | } 122 | } 123 | ], 124 | [ 125 | /[$][\w$]*/, 126 | { 127 | cases: { 128 | "@keywords": "keyword", 129 | "@default": "argument.identifier" 130 | } 131 | } 132 | ], 133 | [ 134 | /[A-Z][\w\$]*/, 135 | { 136 | cases: { 137 | "@typeKeywords": "keyword", 138 | "@default": "type.identifier" 139 | } 140 | } 141 | ], 142 | { include: "@whitespace" }, 143 | [/[{}()\[\]]/, "@brackets"], 144 | [/@symbols/, { cases: { "@operators": "operator", "@default": "" } }], 145 | [/@\s*[a-zA-Z_\$][\w\$]*/, { token: "annotation", log: "annotation token: $0" }], 146 | [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], 147 | [/0[xX][0-9a-fA-F]+/, "number.hex"], 148 | [/\d+/, "number"], 149 | [/[;,.]/, "delimiter"], 150 | [/"""/, { token: "string", next: "@mlstring", nextEmbedded: "markdown" }], 151 | [/"([^"\\]|\\.)*$/, "string.invalid"], 152 | [/"/, { token: "string.quote", bracket: "@open", next: "@string" }] 153 | ], 154 | mlstring: [ 155 | [/[^"]+/, "string"], 156 | ['"""', { token: "string", next: "@pop", nextEmbedded: "@pop" }] 157 | ], 158 | string: [ 159 | [/[^\\"]+/, "string"], 160 | [/@escapes/, "string.escape"], 161 | [/\\./, "string.escape.invalid"], 162 | [/"/, { token: "string.quote", bracket: "@close", next: "@pop" }] 163 | ], 164 | whitespace: [ 165 | [/[ \t\r\n]+/, ""], 166 | [/#.*$/, "comment"] 167 | ] 168 | } 169 | }; 170 | return __toCommonJS(graphql_exports); 171 | })(); 172 | return moduleExports; 173 | }); 174 | -------------------------------------------------------------------------------- /src/web/lib/vs/basic-languages/lua/lua.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/lua/lua", ["require"],(require)=>{ 8 | var moduleExports = (() => { 9 | var __defProp = Object.defineProperty; 10 | var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 11 | var __getOwnPropNames = Object.getOwnPropertyNames; 12 | var __hasOwnProp = Object.prototype.hasOwnProperty; 13 | var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); 14 | var __export = (target, all) => { 15 | for (var name in all) 16 | __defProp(target, name, { get: all[name], enumerable: true }); 17 | }; 18 | var __reExport = (target, module, copyDefault, desc) => { 19 | if (module && typeof module === "object" || typeof module === "function") { 20 | for (let key of __getOwnPropNames(module)) 21 | if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) 22 | __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable }); 23 | } 24 | return target; 25 | }; 26 | var __toCommonJS = /* @__PURE__ */ ((cache) => { 27 | return (module, temp) => { 28 | return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp); 29 | }; 30 | })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); 31 | 32 | // src/basic-languages/lua/lua.ts 33 | var lua_exports = {}; 34 | __export(lua_exports, { 35 | conf: () => conf, 36 | language: () => language 37 | }); 38 | var conf = { 39 | comments: { 40 | lineComment: "--", 41 | blockComment: ["--[[", "]]"] 42 | }, 43 | brackets: [ 44 | ["{", "}"], 45 | ["[", "]"], 46 | ["(", ")"] 47 | ], 48 | autoClosingPairs: [ 49 | { open: "{", close: "}" }, 50 | { open: "[", close: "]" }, 51 | { open: "(", close: ")" }, 52 | { open: '"', close: '"' }, 53 | { open: "'", close: "'" } 54 | ], 55 | surroundingPairs: [ 56 | { open: "{", close: "}" }, 57 | { open: "[", close: "]" }, 58 | { open: "(", close: ")" }, 59 | { open: '"', close: '"' }, 60 | { open: "'", close: "'" } 61 | ] 62 | }; 63 | var language = { 64 | defaultToken: "", 65 | tokenPostfix: ".lua", 66 | keywords: [ 67 | "and", 68 | "break", 69 | "do", 70 | "else", 71 | "elseif", 72 | "end", 73 | "false", 74 | "for", 75 | "function", 76 | "goto", 77 | "if", 78 | "in", 79 | "local", 80 | "nil", 81 | "not", 82 | "or", 83 | "repeat", 84 | "return", 85 | "then", 86 | "true", 87 | "until", 88 | "while" 89 | ], 90 | brackets: [ 91 | { token: "delimiter.bracket", open: "{", close: "}" }, 92 | { token: "delimiter.array", open: "[", close: "]" }, 93 | { token: "delimiter.parenthesis", open: "(", close: ")" } 94 | ], 95 | operators: [ 96 | "+", 97 | "-", 98 | "*", 99 | "/", 100 | "%", 101 | "^", 102 | "#", 103 | "==", 104 | "~=", 105 | "<=", 106 | ">=", 107 | "<", 108 | ">", 109 | "=", 110 | ";", 111 | ":", 112 | ",", 113 | ".", 114 | "..", 115 | "..." 116 | ], 117 | symbols: /[=>{ 8 | var moduleExports = (() => { 9 | var __defProp = Object.defineProperty; 10 | var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 11 | var __getOwnPropNames = Object.getOwnPropertyNames; 12 | var __hasOwnProp = Object.prototype.hasOwnProperty; 13 | var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); 14 | var __export = (target, all) => { 15 | for (var name in all) 16 | __defProp(target, name, { get: all[name], enumerable: true }); 17 | }; 18 | var __reExport = (target, module, copyDefault, desc) => { 19 | if (module && typeof module === "object" || typeof module === "function") { 20 | for (let key of __getOwnPropNames(module)) 21 | if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) 22 | __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable }); 23 | } 24 | return target; 25 | }; 26 | var __toCommonJS = /* @__PURE__ */ ((cache) => { 27 | return (module, temp) => { 28 | return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp); 29 | }; 30 | })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); 31 | 32 | // src/basic-languages/bicep/bicep.ts 33 | var bicep_exports = {}; 34 | __export(bicep_exports, { 35 | conf: () => conf, 36 | language: () => language 37 | }); 38 | var bounded = (text) => `\\b${text}\\b`; 39 | var identifierStart = "[_a-zA-Z]"; 40 | var identifierContinue = "[_a-zA-Z0-9]"; 41 | var identifier = bounded(`${identifierStart}${identifierContinue}*`); 42 | var keywords = [ 43 | "targetScope", 44 | "resource", 45 | "module", 46 | "param", 47 | "var", 48 | "output", 49 | "for", 50 | "in", 51 | "if", 52 | "existing" 53 | ]; 54 | var namedLiterals = ["true", "false", "null"]; 55 | var nonCommentWs = `[ \\t\\r\\n]`; 56 | var numericLiteral = `[0-9]+`; 57 | var conf = { 58 | comments: { 59 | lineComment: "//", 60 | blockComment: ["/*", "*/"] 61 | }, 62 | brackets: [ 63 | ["{", "}"], 64 | ["[", "]"], 65 | ["(", ")"] 66 | ], 67 | surroundingPairs: [ 68 | { open: "{", close: "}" }, 69 | { open: "[", close: "]" }, 70 | { open: "(", close: ")" }, 71 | { open: "'", close: "'" }, 72 | { open: "'''", close: "'''" } 73 | ], 74 | autoClosingPairs: [ 75 | { open: "{", close: "}" }, 76 | { open: "[", close: "]" }, 77 | { open: "(", close: ")" }, 78 | { open: "'", close: "'", notIn: ["string", "comment"] }, 79 | { open: "'''", close: "'''", notIn: ["string", "comment"] } 80 | ], 81 | autoCloseBefore: ":.,=}])' \n ", 82 | indentationRules: { 83 | increaseIndentPattern: new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"), 84 | decreaseIndentPattern: new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$") 85 | } 86 | }; 87 | var language = { 88 | defaultToken: "", 89 | tokenPostfix: ".bicep", 90 | brackets: [ 91 | { open: "{", close: "}", token: "delimiter.curly" }, 92 | { open: "[", close: "]", token: "delimiter.square" }, 93 | { open: "(", close: ")", token: "delimiter.parenthesis" } 94 | ], 95 | symbols: /[=>{ 8 | var moduleExports = (() => { 9 | var __defProp = Object.defineProperty; 10 | var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 11 | var __getOwnPropNames = Object.getOwnPropertyNames; 12 | var __hasOwnProp = Object.prototype.hasOwnProperty; 13 | var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); 14 | var __export = (target, all) => { 15 | for (var name in all) 16 | __defProp(target, name, { get: all[name], enumerable: true }); 17 | }; 18 | var __reExport = (target, module, copyDefault, desc) => { 19 | if (module && typeof module === "object" || typeof module === "function") { 20 | for (let key of __getOwnPropNames(module)) 21 | if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) 22 | __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable }); 23 | } 24 | return target; 25 | }; 26 | var __toCommonJS = /* @__PURE__ */ ((cache) => { 27 | return (module, temp) => { 28 | return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp); 29 | }; 30 | })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); 31 | 32 | // src/basic-languages/cameligo/cameligo.ts 33 | var cameligo_exports = {}; 34 | __export(cameligo_exports, { 35 | conf: () => conf, 36 | language: () => language 37 | }); 38 | var conf = { 39 | comments: { 40 | lineComment: "//", 41 | blockComment: ["(*", "*)"] 42 | }, 43 | brackets: [ 44 | ["{", "}"], 45 | ["[", "]"], 46 | ["(", ")"], 47 | ["<", ">"] 48 | ], 49 | autoClosingPairs: [ 50 | { open: "{", close: "}" }, 51 | { open: "[", close: "]" }, 52 | { open: "(", close: ")" }, 53 | { open: "<", close: ">" }, 54 | { open: "'", close: "'" }, 55 | { open: '"', close: '"' }, 56 | { open: "(*", close: "*)" } 57 | ], 58 | surroundingPairs: [ 59 | { open: "{", close: "}" }, 60 | { open: "[", close: "]" }, 61 | { open: "(", close: ")" }, 62 | { open: "<", close: ">" }, 63 | { open: "'", close: "'" }, 64 | { open: '"', close: '"' }, 65 | { open: "(*", close: "*)" } 66 | ] 67 | }; 68 | var language = { 69 | defaultToken: "", 70 | tokenPostfix: ".cameligo", 71 | ignoreCase: true, 72 | brackets: [ 73 | { open: "{", close: "}", token: "delimiter.curly" }, 74 | { open: "[", close: "]", token: "delimiter.square" }, 75 | { open: "(", close: ")", token: "delimiter.parenthesis" }, 76 | { open: "<", close: ">", token: "delimiter.angle" } 77 | ], 78 | keywords: [ 79 | "abs", 80 | "assert", 81 | "block", 82 | "Bytes", 83 | "case", 84 | "Crypto", 85 | "Current", 86 | "else", 87 | "failwith", 88 | "false", 89 | "for", 90 | "fun", 91 | "if", 92 | "in", 93 | "let", 94 | "let%entry", 95 | "let%init", 96 | "List", 97 | "list", 98 | "Map", 99 | "map", 100 | "match", 101 | "match%nat", 102 | "mod", 103 | "not", 104 | "operation", 105 | "Operation", 106 | "of", 107 | "record", 108 | "Set", 109 | "set", 110 | "sender", 111 | "skip", 112 | "source", 113 | "String", 114 | "then", 115 | "to", 116 | "true", 117 | "type", 118 | "with" 119 | ], 120 | typeKeywords: ["int", "unit", "string", "tz", "nat", "bool"], 121 | operators: [ 122 | "=", 123 | ">", 124 | "<", 125 | "<=", 126 | ">=", 127 | "<>", 128 | ":", 129 | ":=", 130 | "and", 131 | "mod", 132 | "or", 133 | "+", 134 | "-", 135 | "*", 136 | "/", 137 | "@", 138 | "&", 139 | "^", 140 | "%", 141 | "->", 142 | "<-", 143 | "&&", 144 | "||" 145 | ], 146 | symbols: /[=><:@\^&|+\-*\/\^%]+/, 147 | tokenizer: { 148 | root: [ 149 | [ 150 | /[a-zA-Z_][\w]*/, 151 | { 152 | cases: { 153 | "@keywords": { token: "keyword.$0" }, 154 | "@default": "identifier" 155 | } 156 | } 157 | ], 158 | { include: "@whitespace" }, 159 | [/[{}()\[\]]/, "@brackets"], 160 | [/[<>](?!@symbols)/, "@brackets"], 161 | [ 162 | /@symbols/, 163 | { 164 | cases: { 165 | "@operators": "delimiter", 166 | "@default": "" 167 | } 168 | } 169 | ], 170 | [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], 171 | [/\$[0-9a-fA-F]{1,16}/, "number.hex"], 172 | [/\d+/, "number"], 173 | [/[;,.]/, "delimiter"], 174 | [/'([^'\\]|\\.)*$/, "string.invalid"], 175 | [/'/, "string", "@string"], 176 | [/'[^\\']'/, "string"], 177 | [/'/, "string.invalid"], 178 | [/\#\d+/, "string"] 179 | ], 180 | comment: [ 181 | [/[^\(\*]+/, "comment"], 182 | [/\*\)/, "comment", "@pop"], 183 | [/\(\*/, "comment"] 184 | ], 185 | string: [ 186 | [/[^\\']+/, "string"], 187 | [/\\./, "string.escape.invalid"], 188 | [/'/, { token: "string.quote", bracket: "@close", next: "@pop" }] 189 | ], 190 | whitespace: [ 191 | [/[ \t\r\n]+/, "white"], 192 | [/\(\*/, "comment", "@comment"], 193 | [/\/\/.*$/, "comment"] 194 | ] 195 | } 196 | }; 197 | return __toCommonJS(cameligo_exports); 198 | })(); 199 | return moduleExports; 200 | }); 201 | -------------------------------------------------------------------------------- /src/web/lib/vs/basic-languages/lexon/lexon.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/lexon/lexon", ["require"],(require)=>{ 8 | var moduleExports = (() => { 9 | var __defProp = Object.defineProperty; 10 | var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 11 | var __getOwnPropNames = Object.getOwnPropertyNames; 12 | var __hasOwnProp = Object.prototype.hasOwnProperty; 13 | var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); 14 | var __export = (target, all) => { 15 | for (var name in all) 16 | __defProp(target, name, { get: all[name], enumerable: true }); 17 | }; 18 | var __reExport = (target, module, copyDefault, desc) => { 19 | if (module && typeof module === "object" || typeof module === "function") { 20 | for (let key of __getOwnPropNames(module)) 21 | if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) 22 | __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable }); 23 | } 24 | return target; 25 | }; 26 | var __toCommonJS = /* @__PURE__ */ ((cache) => { 27 | return (module, temp) => { 28 | return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp); 29 | }; 30 | })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); 31 | 32 | // src/basic-languages/lexon/lexon.ts 33 | var lexon_exports = {}; 34 | __export(lexon_exports, { 35 | conf: () => conf, 36 | language: () => language 37 | }); 38 | var conf = { 39 | comments: { 40 | lineComment: "COMMENT" 41 | }, 42 | brackets: [["(", ")"]], 43 | autoClosingPairs: [ 44 | { open: "{", close: "}" }, 45 | { open: "[", close: "]" }, 46 | { open: "(", close: ")" }, 47 | { open: '"', close: '"' }, 48 | { open: ":", close: "." } 49 | ], 50 | surroundingPairs: [ 51 | { open: "{", close: "}" }, 52 | { open: "[", close: "]" }, 53 | { open: "(", close: ")" }, 54 | { open: "`", close: "`" }, 55 | { open: '"', close: '"' }, 56 | { open: "'", close: "'" }, 57 | { open: ":", close: "." } 58 | ], 59 | folding: { 60 | markers: { 61 | start: new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"), 62 | end: new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion") 63 | } 64 | } 65 | }; 66 | var language = { 67 | tokenPostfix: ".lexon", 68 | ignoreCase: true, 69 | keywords: [ 70 | "lexon", 71 | "lex", 72 | "clause", 73 | "terms", 74 | "contracts", 75 | "may", 76 | "pay", 77 | "pays", 78 | "appoints", 79 | "into", 80 | "to" 81 | ], 82 | typeKeywords: ["amount", "person", "key", "time", "date", "asset", "text"], 83 | operators: [ 84 | "less", 85 | "greater", 86 | "equal", 87 | "le", 88 | "gt", 89 | "or", 90 | "and", 91 | "add", 92 | "added", 93 | "subtract", 94 | "subtracted", 95 | "multiply", 96 | "multiplied", 97 | "times", 98 | "divide", 99 | "divided", 100 | "is", 101 | "be", 102 | "certified" 103 | ], 104 | symbols: /[=>](?!@symbols)/, "@brackets"], 147 | [/@symbols/, "delimiter"], 148 | [/\d*\.\d*\.\d*/, "number.semver"], 149 | [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"], 150 | [/0[xX][0-9a-fA-F]+/, "number.hex"], 151 | [/\d+/, "number"], 152 | [/[;,.]/, "delimiter"] 153 | ], 154 | quoted_identifier: [ 155 | [/[^\\"]+/, "identifier"], 156 | [/"/, { token: "identifier.quote", bracket: "@close", next: "@pop" }] 157 | ], 158 | space_identifier_until_period: [ 159 | [":", "delimiter"], 160 | [" ", { token: "white", next: "@identifier_rest" }] 161 | ], 162 | identifier_until_period: [ 163 | { include: "@whitespace" }, 164 | [":", { token: "delimiter", next: "@identifier_rest" }], 165 | [/[^\\.]+/, "identifier"], 166 | [/\./, { token: "delimiter", bracket: "@close", next: "@pop" }] 167 | ], 168 | identifier_rest: [ 169 | [/[^\\.]+/, "identifier"], 170 | [/\./, { token: "delimiter", bracket: "@close", next: "@pop" }] 171 | ], 172 | semver: [ 173 | { include: "@whitespace" }, 174 | [":", "delimiter"], 175 | [/\d*\.\d*\.\d*/, { token: "number.semver", bracket: "@close", next: "@pop" }] 176 | ], 177 | whitespace: [[/[ \t\r\n]+/, "white"]] 178 | } 179 | }; 180 | return __toCommonJS(lexon_exports); 181 | })(); 182 | return moduleExports; 183 | }); 184 | -------------------------------------------------------------------------------- /src/web/lib/vs/basic-languages/xml/xml.js: -------------------------------------------------------------------------------- 1 | /*!----------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) 4 | * Released under the MIT license 5 | * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt 6 | *-----------------------------------------------------------------------------*/ 7 | define("vs/basic-languages/xml/xml", ["require"],(require)=>{ 8 | var moduleExports = (() => { 9 | var __create = Object.create; 10 | var __defProp = Object.defineProperty; 11 | var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 12 | var __getOwnPropNames = Object.getOwnPropertyNames; 13 | var __getProtoOf = Object.getPrototypeOf; 14 | var __hasOwnProp = Object.prototype.hasOwnProperty; 15 | var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); 16 | var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { 17 | get: (a, b) => (typeof require !== "undefined" ? require : a)[b] 18 | }) : x)(function(x) { 19 | if (typeof require !== "undefined") 20 | return require.apply(this, arguments); 21 | throw new Error('Dynamic require of "' + x + '" is not supported'); 22 | }); 23 | var __commonJS = (cb, mod) => function __require2() { 24 | return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; 25 | }; 26 | var __export = (target, all) => { 27 | for (var name in all) 28 | __defProp(target, name, { get: all[name], enumerable: true }); 29 | }; 30 | var __reExport = (target, module, copyDefault, desc) => { 31 | if (module && typeof module === "object" || typeof module === "function") { 32 | for (let key of __getOwnPropNames(module)) 33 | if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) 34 | __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable }); 35 | } 36 | return target; 37 | }; 38 | var __toESM = (module, isNodeMode) => { 39 | return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", !isNodeMode && module && module.__esModule ? { get: () => module.default, enumerable: true } : { value: module, enumerable: true })), module); 40 | }; 41 | var __toCommonJS = /* @__PURE__ */ ((cache) => { 42 | return (module, temp) => { 43 | return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp); 44 | }; 45 | })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); 46 | 47 | // src/fillers/monaco-editor-core-amd.ts 48 | var require_monaco_editor_core_amd = __commonJS({ 49 | "src/fillers/monaco-editor-core-amd.ts"(exports, module) { 50 | var api = __toESM(__require("vs/editor/editor.api")); 51 | module.exports = api; 52 | } 53 | }); 54 | 55 | // src/basic-languages/xml/xml.ts 56 | var xml_exports = {}; 57 | __export(xml_exports, { 58 | conf: () => conf, 59 | language: () => language 60 | }); 61 | 62 | // src/fillers/monaco-editor-core.ts 63 | var monaco_editor_core_exports = {}; 64 | __reExport(monaco_editor_core_exports, __toESM(require_monaco_editor_core_amd())); 65 | 66 | // src/basic-languages/xml/xml.ts 67 | var conf = { 68 | comments: { 69 | blockComment: [""] 70 | }, 71 | brackets: [["<", ">"]], 72 | autoClosingPairs: [ 73 | { open: "<", close: ">" }, 74 | { open: "'", close: "'" }, 75 | { open: '"', close: '"' } 76 | ], 77 | surroundingPairs: [ 78 | { open: "<", close: ">" }, 79 | { open: "'", close: "'" }, 80 | { open: '"', close: '"' } 81 | ], 82 | onEnterRules: [ 83 | { 84 | beforeText: new RegExp(`<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"), 85 | afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i, 86 | action: { 87 | indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent 88 | } 89 | }, 90 | { 91 | beforeText: new RegExp(`<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"), 92 | action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent } 93 | } 94 | ] 95 | }; 96 | var language = { 97 | defaultToken: "", 98 | tokenPostfix: ".xml", 99 | ignoreCase: true, 100 | qualifiedName: /(?:[\w\.\-]+:)?[\w\.\-]+/, 101 | tokenizer: { 102 | root: [ 103 | [/[^<&]+/, ""], 104 | { include: "@whitespace" }, 105 | [/(<)(@qualifiedName)/, [{ token: "delimiter" }, { token: "tag", next: "@tag" }]], 106 | [ 107 | /(<\/)(@qualifiedName)(\s*)(>)/, 108 | [{ token: "delimiter" }, { token: "tag" }, "", { token: "delimiter" }] 109 | ], 110 | [/(<\?)(@qualifiedName)/, [{ token: "delimiter" }, { token: "metatag", next: "@tag" }]], 111 | [/(<\!)(@qualifiedName)/, [{ token: "delimiter" }, { token: "metatag", next: "@tag" }]], 112 | [/<\!\[CDATA\[/, { token: "delimiter.cdata", next: "@cdata" }], 113 | [/&\w+;/, "string.escape"] 114 | ], 115 | cdata: [ 116 | [/[^\]]+/, ""], 117 | [/\]\]>/, { token: "delimiter.cdata", next: "@pop" }], 118 | [/\]/, ""] 119 | ], 120 | tag: [ 121 | [/[ \t\r\n]+/, ""], 122 | [/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/, ["attribute.name", "", "attribute.value"]], 123 | [ 124 | /(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/, 125 | ["attribute.name", "", "attribute.value"] 126 | ], 127 | [/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/, ["attribute.name", "", "attribute.value"]], 128 | [/@qualifiedName/, "attribute.name"], 129 | [/\?>/, { token: "delimiter", next: "@pop" }], 130 | [/(\/)(>)/, [{ token: "tag" }, { token: "delimiter", next: "@pop" }]], 131 | [/>/, { token: "delimiter", next: "@pop" }] 132 | ], 133 | whitespace: [ 134 | [/[ \t\r\n]+/, ""], 135 | [//, { token: "comment", next: "@pop" }], 140 | [/