2022-06-03 19:30:11 +02:00
|
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"conf\": () => (/* binding */ conf),\n/* harmony export */ \"language\": () => (/* binding */ language)\n/* harmony export */ });\n/*!-----------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)\n * Released under the MIT license\n * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt\n *-----------------------------------------------------------------------------*/\n\n// src/basic-languages/less/less.ts\nvar conf = {\n wordPattern: /(#?-?\\d*\\.\\d\\w*%?)|([@#!.:]?[\\w-?]+%?)|[@#!.]/g,\n comments: {\n blockComment: [\"/*\", \"*/\"],\n lineComment: \"//\"\n },\n brackets: [\n [\"{\", \"}\"],\n [\"[\", \"]\"],\n [\"(\", \")\"]\n ],\n autoClosingPairs: [\n { open: \"{\", close: \"}\", notIn: [\"string\", \"comment\"] },\n { open: \"[\", close: \"]\", notIn: [\"string\", \"comment\"] },\n { open: \"(\", close: \")\", notIn: [\"string\", \"comment\"] },\n { open: '\"', close: '\"', notIn: [\"string\", \"comment\"] },\n { open: \"'\", close: \"'\", notIn: [\"string\", \"comment\"] }\n ],\n surroundingPairs: [\n { open: \"{\", close: \"}\" },\n { open: \"[\", close: \"]\" },\n { open: \"(\", close: \")\" },\n { open: '\"', close: '\"' },\n { open: \"'\", close: \"'\" }\n ],\n folding: {\n markers: {\n start: new RegExp(\"^\\\\s*\\\\/\\\\*\\\\s*#region\\\\b\\\\s*(.*?)\\\\s*\\\\*\\\\/\"),\n end: new RegExp(\"^\\\\s*\\\\/\\\\*\\\\s*#endregion\\\\b.*\\\\*\\\\/\")\n }\n }\n};\nvar language = {\n defaultToken: \"\",\n tokenPostfix: \".less\",\n identifier: \"-?-?([a-zA-Z]|(\\\\\\\\(([0-9a-fA-F]{1,6}\\\\s?)|[^[0-9a-fA-F])))([\\\\w\\\\-]|(\\\\\\\\(([0-9a-fA-F]{1,6}\\\\s?)|[^[0-9a-fA-F])))*\",\n identifierPlus: \"-?-?([a-zA-Z:.]|(\\\\\\\\(([0-9a-fA-F]{1,6}\\\\s?)|[^[0-9a-fA-F])))([\\\\w\\\\-:.]|(\\\\\\\\(([0-9a-fA-F]{1,6}\\\\s?)|[^[0-9a-fA-F])))*\",\n brackets: [\n { open: \"{\", close: \"}\", token: \"delimiter.curly\" },\n { open: \"[\", close: \"]\", token: \"delimiter.bracket\" },\n { open: \"(\", close: \")\", token: \"delimiter.parenthesis\" },\n { open: \"<\", close: \">\", token: \"delimiter.angle\" }\n ],\n tokenizer: {\n root: [\n { include: \"@nestedJSBegin\" },\n [\"[ \\\\t\\\\r\\\\n]+\", \"\"],\n { include: \"@comments\" },\n { include: \"@keyword\" },\n { include: \"@strings\" },\n { include: \"@numbers\" },\n [\"[*_]?[a-zA-Z\\\\-\\\\s]+(?=:.*(;|(\\\\\\\\$)))\", \"attribute.name\", \"@attribute\"],\n [\"url(\\\\-prefix)?\\\\(\", { token: \"tag\", next: \"@urldeclaration\" }],\n [\"[{}()\\\\[\\\\]]\", \"@brackets\"],\n [\"[,:;]\", \"delimiter\"],\n [\"#@identifierPlus\", \"tag.id\"],\n [\"&\", \"tag\"],\n [\"\\\\.@identifierPlus(?=\\\\()\", \"tag.class\", \"@attribute\"],\n [\"\\\\.@identifierPlus\", \"tag.class\"],\n [\"@identifierPlus\", \"tag\"],\n { include: \"@operators\" },\n [\"@(@identifier(?=[:,\\\\)]))\", \"variable\", \"@attribute\"],\n [\"@(@identifier)\", \"variable\"],\n [\"@\", \"key\", \"@atRules\"]\n ],\n nestedJSBegin: [\n [\"``\", \"delimiter.backtick\"],\n [\n \"`\",\n {\n token: \"delimiter.backtick\",\n next: \"@nestedJSEnd\",\n nextEmbedded: \"text/javascript\"\n }\n ]\n ],\n nestedJSEnd: [\n [\n \"`\",\n {\n token: \"delimiter.backtick\",\n next: \"@pop\",\n nextEmbedded: \"@pop\"\n }\n ]\n ],\n operators: [[\"[<>=\\\\+\\\\-\\\\*\\\\/\\\\^\\\\|\\\\~]\", \"operator\"]],\n keyword: [\n [\n \"(@[\\\\s]*import|![\\\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desatura
|