@univerjs/uniscript 0.5.5-nightly.202501210925 → 0.5.5-nightly.202501220324
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/abap-CoJSvTgX.js +6 -0
- package/lib/apex-BsDeETMY.js +6 -0
- package/lib/azcli-CNnWpMb-.js +6 -0
- package/lib/bat-DB0A7iQe.js +6 -0
- package/lib/bicep-DTn3Wdmb.js +7 -0
- package/lib/cameligo-DcNkHmMG.js +6 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/clojure-DHpKfVc8.js +6 -0
- package/lib/coffee-CeyIb9fT.js +6 -0
- package/lib/cpp-4AzDgtns.js +6 -0
- package/lib/csharp-D-2bIXQ5.js +6 -0
- package/lib/csp-BAiNlh73.js +6 -0
- package/lib/{css-D8IzNaWL.js → css-dfO3-jd0.js} +2 -2
- package/lib/cssMode-QNmXD9xd.js +9 -0
- package/lib/cypher-DX2xl-3p.js +6 -0
- package/lib/dart-DZ4dktnq.js +6 -0
- package/lib/dockerfile-9w9nOnU-.js +6 -0
- package/lib/ecl-iSxVPksc.js +6 -0
- package/lib/elixir-Cl8QkhAX.js +6 -0
- package/lib/es/index.js +5 -35
- package/lib/flow9-CNQrQaUc.js +6 -0
- package/lib/freemarker2-DA6_THOa.js +8 -0
- package/lib/fsharp-E7ubsqb4.js +6 -0
- package/lib/go-MzHwn87a.js +6 -0
- package/lib/graphql-N2omNLOZ.js +6 -0
- package/lib/handlebars-DTr7Il6J.js +6 -0
- package/lib/hcl-DwqbouWt.js +6 -0
- package/lib/html-BNXpwgCP.js +6 -0
- package/lib/htmlMode-D23ld1hV.js +9 -0
- package/lib/index-D8dmFU9j.js +1155 -0
- package/lib/ini-Dsjau2xM.js +6 -0
- package/lib/java-DPI7uaJj.js +6 -0
- package/lib/javascript-1naLszP3.js +6 -0
- package/lib/jsonMode-IeQIL17R.js +15 -0
- package/lib/julia-D7qoeuSW.js +6 -0
- package/lib/kotlin-D_89wZJ7.js +6 -0
- package/lib/less-Cf9dfqqG.js +7 -0
- package/lib/lexon-CxFNJcYa.js +6 -0
- package/lib/liquid-t0KpFygS.js +6 -0
- package/lib/lua-bgJ5Lnc3.js +6 -0
- package/lib/m3-C1tOkj9O.js +6 -0
- package/lib/markdown-NVU81wsN.js +6 -0
- package/lib/mdx-xhwoIL56.js +6 -0
- package/lib/mips-CMoMPIJI.js +6 -0
- package/lib/msdax-CBHSlsMi.js +6 -0
- package/lib/mysql-B0PcYx1d.js +6 -0
- package/lib/objective-c-BBAJYBgk.js +6 -0
- package/lib/pascal-Dui3-Ara.js +6 -0
- package/lib/pascaligo-CELBng2Z.js +6 -0
- package/lib/perl-BLEsC_5k.js +6 -0
- package/lib/pgsql-kbDbaK0O.js +6 -0
- package/lib/php-p_Pkr0XX.js +6 -0
- package/lib/pla-BrraUvAq.js +6 -0
- package/lib/postiats-B16r5d69.js +6 -0
- package/lib/powerquery-DCt0cYYQ.js +6 -0
- package/lib/powershell-BkOftLcO.js +6 -0
- package/lib/protobuf-C0ydorCS.js +7 -0
- package/lib/pug-IL8GFY2w.js +6 -0
- package/lib/python-CdIUC0qT.js +6 -0
- package/lib/qsharp-BJzFuxNK.js +6 -0
- package/lib/r-CB98qt-6.js +6 -0
- package/lib/razor-CXw2Ly9q.js +6 -0
- package/lib/redis-D0wXruPM.js +6 -0
- package/lib/redshift-B6UlTWCD.js +6 -0
- package/lib/restructuredtext-DKSVAX8o.js +6 -0
- package/lib/ruby-D4NWdqMX.js +6 -0
- package/lib/rust-BxywuE8G.js +6 -0
- package/lib/sb-BLs7GN9x.js +6 -0
- package/lib/scala-CkJH5RGj.js +6 -0
- package/lib/scheme-B3IHZqVk.js +6 -0
- package/lib/{scss-BICI8Lvl.js → scss-BTElJ37A.js} +2 -2
- package/lib/shell-BsdOUbgW.js +6 -0
- package/lib/solidity-DbDLlwQ7.js +6 -0
- package/lib/sophia-CGp6swhn.js +6 -0
- package/lib/sparql-e8Gq9rgo.js +6 -0
- package/lib/sql-ZgvftFQ5.js +6 -0
- package/lib/st-C6IkFjZG.js +6 -0
- package/lib/swift-si85LS4r.js +8 -0
- package/lib/systemverilog-CoWhQJa8.js +6 -0
- package/lib/tcl-DG9SEU6N.js +6 -0
- package/lib/tsMode-D7rTzvJD.js +16 -0
- package/lib/twig-DkKSRLzV.js +6 -0
- package/lib/types/views/components/ScriptEditorPanel.d.ts +16 -2
- package/lib/typescript-fI05UlV8.js +6 -0
- package/lib/typespec-xy9G5Dk1.js +6 -0
- package/lib/umd/index.js +474 -482
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/lib/vb-BlH3zNLH.js +6 -0
- package/lib/{wgsl-CPwT7Vox.js → wgsl-kVykXlBQ.js} +10 -10
- package/lib/xml-l4ZW1dms.js +6 -0
- package/lib/yaml-u5i3WAPV.js +6 -0
- package/package.json +8 -7
- package/lib/abap-CrVaG5QI.js +0 -6
- package/lib/apex-CGiaaokt.js +0 -6
- package/lib/azcli-CCWOS89X.js +0 -6
- package/lib/bat-dplVPQ-_.js +0 -6
- package/lib/bicep-Q9zrsOvk.js +0 -7
- package/lib/cameligo-Dr5j7v0u.js +0 -6
- package/lib/clojure-DPJGbZtj.js +0 -6
- package/lib/coffee-CUV2cHk6.js +0 -6
- package/lib/cpp-DyuKq4fH.js +0 -6
- package/lib/csharp-d4dFAWKM.js +0 -6
- package/lib/csp-Lc8LbON9.js +0 -6
- package/lib/cssMode-B7pvUxl-.js +0 -9
- package/lib/cypher-BuSmvVBI.js +0 -6
- package/lib/dart-d-sZXKUo.js +0 -6
- package/lib/dockerfile-OepqCuVM.js +0 -6
- package/lib/ecl-GFERKf5i.js +0 -6
- package/lib/elixir-9a1efda4.js +0 -6
- package/lib/flow9-DsqME3Wt.js +0 -6
- package/lib/freemarker2-xiF6JLqa.js +0 -8
- package/lib/fsharp-DtZL2hil.js +0 -6
- package/lib/go-B11TqKJA.js +0 -6
- package/lib/graphql-DrfV554J.js +0 -6
- package/lib/handlebars-CqX29lCs.js +0 -6
- package/lib/hcl-B0mc1H5M.js +0 -6
- package/lib/html-0ViQNyqm.js +0 -6
- package/lib/htmlMode-DNYIhjKa.js +0 -9
- package/lib/index-PfpTS-NB.js +0 -1163
- package/lib/ini-ymhBH5HG.js +0 -6
- package/lib/java-D4zTn_HA.js +0 -6
- package/lib/javascript-B_MqLd8m.js +0 -6
- package/lib/jsonMode-DU50NXrO.js +0 -15
- package/lib/julia-Dp7_oxTx.js +0 -6
- package/lib/kotlin-DN07yPPp.js +0 -6
- package/lib/less-CtJmsSxx.js +0 -7
- package/lib/lexon-BH122-aN.js +0 -6
- package/lib/liquid-btzpfnAN.js +0 -6
- package/lib/lua-DF1giqni.js +0 -6
- package/lib/m3-BSVLgJdx.js +0 -6
- package/lib/markdown-DqkJT7wW.js +0 -6
- package/lib/mdx-B8VlwFnM.js +0 -6
- package/lib/mips-HcsFOvwE.js +0 -6
- package/lib/msdax-D8wkgf9t.js +0 -6
- package/lib/mysql-D1qSUjcB.js +0 -6
- package/lib/objective-c-BcY1nQEp.js +0 -6
- package/lib/pascal-C6VID8iC.js +0 -6
- package/lib/pascaligo-CtEkUcZy.js +0 -6
- package/lib/perl-BS5MoSit.js +0 -6
- package/lib/pgsql-DSQqzbUN.js +0 -6
- package/lib/php-Dcbv8it3.js +0 -6
- package/lib/pla-BKGu3P8x.js +0 -6
- package/lib/postiats-lASv8P6N.js +0 -6
- package/lib/powerquery-BuqmBiPU.js +0 -6
- package/lib/powershell-CtRTGCOm.js +0 -6
- package/lib/protobuf-Dk87ns3u.js +0 -7
- package/lib/pug-CVbk24PQ.js +0 -6
- package/lib/python-6Bz4UhFy.js +0 -6
- package/lib/qsharp-BSix4Z0w.js +0 -6
- package/lib/r-CSIGVqGj.js +0 -6
- package/lib/razor-PcN7p74j.js +0 -6
- package/lib/redis-1SUKo9jD.js +0 -6
- package/lib/redshift-BS1FVf13.js +0 -6
- package/lib/restructuredtext-DU-k0-PC.js +0 -6
- package/lib/ruby-aigiByO4.js +0 -6
- package/lib/rust-adCJoS28.js +0 -6
- package/lib/sb-CiUR99st.js +0 -6
- package/lib/scala-Tb5I4vBh.js +0 -6
- package/lib/scheme-BMUadJWp.js +0 -6
- package/lib/shell-BUjduzW4.js +0 -6
- package/lib/solidity-DFZoFjgL.js +0 -6
- package/lib/sophia-B_a5zu_Y.js +0 -6
- package/lib/sparql-C-N2tZtn.js +0 -6
- package/lib/sql-CVdEafkq.js +0 -6
- package/lib/st-2HB7Hiwr.js +0 -6
- package/lib/swift-xGTYXUAm.js +0 -8
- package/lib/systemverilog-BaPbkNTu.js +0 -6
- package/lib/tcl-SSKta9Un.js +0 -6
- package/lib/tsMode-CBu-1oxd.js +0 -16
- package/lib/twig-ByEpcNlL.js +0 -6
- package/lib/typescript-CiryofER.js +0 -6
- package/lib/typespec-Bxe2hBLx.js +0 -6
- package/lib/vb-m8wPqU1B.js +0 -6
- package/lib/xml-ChHVEXcV.js +0 -6
- package/lib/yaml-8W72jxpB.js +0 -6
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/var conf={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["(",")"],["[","]"],["<!--","-->"],["<",">"]],autoClosingPairs:[{open:"{# ",close:" #}"},{open:"{% ",close:" %}"},{open:"{{ ",close:" }}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},language={defaultToken:"",tokenPostfix:"",ignoreCase:!0,keywords:["apply","autoescape","block","deprecated","do","embed","extends","flush","for","from","if","import","include","macro","sandbox","set","use","verbatim","with","endapply","endautoescape","endblock","endembed","endfor","endif","endmacro","endsandbox","endset","endwith","true","false"],tokenizer:{root:[[/\s+/],[/{#/,"comment.twig","@commentState"],[/{%[-~]?/,"delimiter.twig","@blockState"],[/{{[-~]?/,"delimiter.twig","@variableState"],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter.html","tag.html","","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[^<{]+/]],commentState:[[/#}/,"comment.twig","@pop"],[/./,"comment.twig"]],blockState:[[/[-~]?%}/,"delimiter.twig","@pop"],[/\s+/],[/(verbatim)(\s*)([-~]?%})/,["keyword.twig","",{token:"delimiter.twig",next:"@rawDataState"}]],{include:"expression"}],rawDataState:[[/({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/,["delimiter.twig","","keyword.twig","",{token:"delimiter.twig",next:"@popall"}]],[/./,"string.twig"]],variableState:[[/[-~]?}}/,"delimiter.twig","@pop"],{include:"expression"}],stringState:[[/"/,"string.twig","@pop"],[/#{\s*/,"string.twig","@interpolationState"],[/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/,"string.twig"]],interpolationState:[[/}/,"string.twig","@pop"],{include:"expression"}],expression:[[/\s+/],[/\+|-|\/{1,2}|%|\*{1,2}/,"operators.twig"],[/(and|or|not|b-and|b-xor|b-or)(\s+)/,["operators.twig",""]],[/==|!=|<|>|>=|<=/,"operators.twig"],[/(starts with|ends with|matches)(\s+)/,["operators.twig",""]],[/(in)(\s+)/,["operators.twig",""]],[/(is)(\s+)/,["operators.twig",""]],[/\||~|:|\.{1,2}|\?{1,2}/,"operators.twig"],[/[^\W\d][\w]*/,{cases:{"@keywords":"keyword.twig","@default":"variable.twig"}}],[/\d+(\.\d+)?/,"number.twig"],[/\(|\)|\[|\]|{|}|,/,"delimiter.twig"],[/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/,"string.twig"],[/"/,"string.twig","@stringState"],[/=>/,"operators.twig"],[/=/,"operators.twig"]],doctype:[[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name.html","@scriptAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter.html","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name.html","@styleAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter.html","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};exports.conf=conf;exports.language=language;
|
@@ -1,2 +1,16 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
/**
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
export declare function ScriptEditorPanel(): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const index=require("./index-D8dmFU9j.js");/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/var __defProp2=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__copyProps=__name((to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp2(to,key,{get:__name(()=>from[key],"get"),enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},"__copyProps"),__reExport=__name((target,mod,secondTarget)=>(__copyProps(target,mod,"default"),secondTarget),"__reExport"),monaco_editor_core_exports={};__reExport(monaco_editor_core_exports,index.monaco_editor_core_star);var conf={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:monaco_editor_core_exports.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:monaco_editor_core_exports.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:monaco_editor_core_exports.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:monaco_editor_core_exports.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},language={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/#?[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};exports.conf=conf;exports.language=language;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/var bounded=__name(text=>`\\b${text}\\b`,"bounded"),notBefore=__name(regex=>`(?!${regex})`,"notBefore"),identifierStart="[_a-zA-Z]",identifierContinue="[_a-zA-Z0-9]",identifier=bounded(`${identifierStart}${identifierContinue}*`),directive=bounded("[_a-zA-Z-0-9]+"),keywords=["import","model","scalar","namespace","op","interface","union","using","is","extends","enum","alias","return","void","if","else","projection","dec","extern","fn"],namedLiterals=["true","false","null","unknown","never"],nonCommentWs="[ \\t\\r\\n]",numericLiteral="[0-9]+",conf={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],indentationRules:{decreaseIndentPattern:new RegExp("^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"),increaseIndentPattern:new RegExp("^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"),unIndentedLinePattern:new RegExp("^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$")}},language={defaultToken:"",tokenPostfix:".tsp",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=:;<>]+/,keywords,namedLiterals,escapes:'\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|"|\\${)',tokenizer:{root:[{include:"@expression"},{include:"@whitespace"}],stringVerbatim:[{regex:'(|"|"")[^"]',action:{token:"string"}},{regex:`"""${notBefore('"')}`,action:{token:"string",next:"@pop"}}],stringLiteral:[{regex:"\\${",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:'[^\\\\"$]+',action:{token:"string"}},{regex:"@escapes",action:{token:"string.escape"}},{regex:"\\\\.",action:{token:"string.escape.invalid"}},{regex:'"',action:{token:"string",next:"@pop"}}],bracketCounting:[{regex:"{",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:"}",action:{token:"delimiter.bracket",next:"@pop"}},{include:"@expression"}],comment:[{regex:"[^\\*]+",action:{token:"comment"}},{regex:"\\*\\/",action:{token:"comment",next:"@pop"}},{regex:"[\\/*]",action:{token:"comment"}}],whitespace:[{regex:nonCommentWs},{regex:"\\/\\*",action:{token:"comment",next:"@comment"}},{regex:"\\/\\/.*$",action:{token:"comment"}}],expression:[{regex:'"""',action:{token:"string",next:"@stringVerbatim"}},{regex:`"${notBefore('""')}`,action:{token:"string",next:"@stringLiteral"}},{regex:numericLiteral,action:{token:"number"}},{regex:identifier,action:{cases:{"@keywords":{token:"keyword"},"@namedLiterals":{token:"keyword"},"@default":{token:"identifier"}}}},{regex:`@${identifier}`,action:{token:"tag"}},{regex:`#${directive}`,action:{token:"directive"}}]}};exports.conf=conf;exports.language=language;
|