1 |
- {"version":3,"file":"mode-toml-78a5323c.js","sources":["../../node_modules/ace-builds/src-noconflict/mode-toml.js"],"sourcesContent":["ace.define(\"ace/mode/toml_highlight_rules\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text_highlight_rules\"], function(require, exports, module){\"use strict\";\nvar oop = require(\"../lib/oop\");\nvar TextHighlightRules = require(\"./text_highlight_rules\").TextHighlightRules;\nvar TomlHighlightRules = function () {\n var keywordMapper = this.createKeywordMapper({\n \"constant.language.boolean\": \"true|false\"\n }, \"identifier\");\n var identifierRe = \"[a-zA-Z\\\\$_\\u00a1-\\uffff][a-zA-Z\\\\d\\\\$_\\u00a1-\\uffff]*\\\\b\";\n this.$rules = {\n \"start\": [\n {\n token: \"comment.toml\",\n regex: /#.*$/\n },\n {\n token: \"string\",\n regex: '\"(?=.)',\n next: \"qqstring\"\n },\n {\n token: [\"variable.keygroup.toml\"],\n regex: \"(?:^\\\\s*)(\\\\[\\\\[([^\\\\]]+)\\\\]\\\\])\"\n },\n {\n token: [\"variable.keygroup.toml\"],\n regex: \"(?:^\\\\s*)(\\\\[([^\\\\]]+)\\\\])\"\n },\n {\n token: keywordMapper,\n regex: identifierRe\n },\n {\n token: \"support.date.toml\",\n regex: \"\\\\d{4}-\\\\d{2}-\\\\d{2}(T)\\\\d{2}:\\\\d{2}:\\\\d{2}(Z)\"\n },\n {\n token: \"constant.numeric.toml\",\n regex: \"-?\\\\d+(\\\\.?\\\\d+)?\"\n }\n ],\n \"qqstring\": [\n {\n token: \"string\",\n regex: \"\\\\\\\\$\",\n next: \"qqstring\"\n },\n {\n token: \"constant.language.escape\",\n regex: '\\\\\\\\[0tnr\"\\\\\\\\]'\n },\n {\n token: \"string\",\n regex: '\"|$',\n next: \"start\"\n },\n {\n defaultToken: \"string\"\n }\n ]\n };\n};\noop.inherits(TomlHighlightRules, TextHighlightRules);\nexports.TomlHighlightRules = TomlHighlightRules;\n\n});\n\nace.define(\"ace/mode/folding/ini\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/range\",\"ace/mode/folding/fold_mode\"], function(require, exports, module){\"use strict\";\nvar oop = require(\"../../lib/oop\");\nvar Range = require(\"../../range\").Range;\nvar BaseFoldMode = require(\"./fold_mode\").FoldMode;\nvar FoldMode = exports.FoldMode = function () {\n};\noop.inherits(FoldMode, BaseFoldMode);\n(function () {\n this.foldingStartMarker = /^\\s*\\[([^\\])]*)]\\s*(?:$|[;#])/;\n this.getFoldWidgetRange = function (session, foldStyle, row) {\n var re = this.foldingStartMarker;\n var line = session.getLine(row);\n var m = line.match(re);\n if (!m)\n return;\n var startName = m[1] + \".\";\n var startColumn = line.length;\n var maxRow = session.getLength();\n var startRow = row;\n var endRow = row;\n while (++row < maxRow) {\n line = session.getLine(row);\n if (/^\\s*$/.test(line))\n continue;\n m = line.match(re);\n if (m && m[1].lastIndexOf(startName, 0) !== 0)\n break;\n endRow = row;\n }\n if (endRow > startRow) {\n var endColumn = session.getLine(endRow).length;\n return new Range(startRow, startColumn, endRow, endColumn);\n }\n };\n}).call(FoldMode.prototype);\n\n});\n\nace.define(\"ace/mode/toml\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text\",\"ace/mode/toml_highlight_rules\",\"ace/mode/folding/ini\"], function(require, exports, module){\"use strict\";\nvar oop = require(\"../lib/oop\");\nvar TextMode = require(\"./text\").Mode;\nvar TomlHighlightRules = require(\"./toml_highlight_rules\").TomlHighlightRules;\nvar FoldMode = require(\"./folding/ini\").FoldMode;\nvar Mode = function () {\n this.HighlightRules = TomlHighlightRules;\n this.foldingRules = new FoldMode();\n this.$behaviour = this.$defaultBehaviour;\n};\noop.inherits(Mode, TextMode);\n(function () {\n this.lineCommentStart = \"#\";\n this.$id = \"ace/mode/toml\";\n}).call(Mode.prototype);\nexports.Mode = Mode;\n\n}); (function() {\n ace.require([\"ace/mode/toml\"], function(m) {\n if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n module.exports = m;\n }\n });\n })();\n "],"names":["require","exports","module","oop","TextHighlightRules","TomlHighlightRules","keywordMapper","identifierRe","Range","BaseFoldMode","FoldMode","session","foldStyle","row","re","line","m","startName","startColumn","maxRow","startRow","endRow","endColumn","TextMode","Mode"],"mappings":"gaAAA,IAAI,OAAO,gCAAgC,CAAC,UAAU,UAAU,SAAS,cAAc,+BAA+B,EAAG,SAASA,EAASC,EAASC,EAAO,CAC3J,IAAIC,EAAMH,EAAQ,YAAY,EAC1BI,EAAqBJ,EAAQ,wBAAwB,EAAE,mBACvDK,EAAqB,UAAY,CACjC,IAAIC,EAAgB,KAAK,oBAAoB,CACzC,4BAA6B,YAChC,EAAE,YAAY,EACXC,EAAe,wCACnB,KAAK,OAAS,CACV,MAAS,CACL,CACI,MAAO,eACP,MAAO,MACV,EACD,CACI,MAAO,SACP,MAAO,SACP,KAAM,UACT,EACD,CACI,MAAO,CAAC,wBAAwB,EAChC,MAAO,kCACV,EACD,CACI,MAAO,CAAC,wBAAwB,EAChC,MAAO,4BACV,EACD,CACI,MAAOD,EACP,MAAOC,CACV,EACD,CACI,MAAO,oBACP,MAAO,gDACV,EACD,CACI,MAAO,wBACP,MAAO,mBACV,CACJ,EACD,SAAY,CACR,CACI,MAAO,SACP,MAAO,QACP,KAAM,UACT,EACD,CACI,MAAO,2BACP,MAAO,iBACV,EACD,CACI,MAAO,SACP,MAAO,MACP,KAAM,OACT,EACD,CACI,aAAc,QACjB,CACJ,CACT,CACA,EACAJ,EAAI,SAASE,EAAoBD,CAAkB,EACnDH,EAAQ,mBAAqBI,CAE7B,CAAC,EAED,IAAI,OAAO,uBAAuB,CAAC,UAAU,UAAU,SAAS,cAAc,YAAY,4BAA4B,EAAG,SAASL,EAASC,EAASC,EAAO,CAC3J,IAAIC,EAAMH,EAAQ,eAAe,EAC7BQ,EAAQR,EAAQ,aAAa,EAAE,MAC/BS,EAAeT,EAAQ,aAAa,EAAE,SACtCU,EAAWT,EAAQ,SAAW,UAAY,CAC9C,EACAE,EAAI,SAAS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