mode-alda-e350d57e.js.map 16 KB

1
  1. {"version":3,"file":"mode-alda-e350d57e.js","sources":["../../node_modules/ace-builds/src-noconflict/mode-alda.js"],"sourcesContent":["ace.define(\"ace/mode/alda_highlight_rules\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text_highlight_rules\"], function(require, exports, module){/* This file was autogenerated from ../../src/alda.JSON-tmLanguage (uuid: ) */\n\"use strict\";\nvar oop = require(\"../lib/oop\");\nvar TextHighlightRules = require(\"./text_highlight_rules\").TextHighlightRules;\nvar AldaHighlightRules = function () {\n this.$rules = {\n pitch: [{\n token: \"variable.parameter.operator.pitch.alda\",\n regex: /(?:[+\\-]+|\\=)/\n }, {\n token: \"\",\n regex: \"\",\n next: \"timing\"\n }],\n timing: [{\n token: \"string.quoted.operator.timing.alda\",\n regex: /\\d+(?:s|ms)?/\n }, {\n token: \"\",\n regex: \"\",\n next: \"start\"\n }],\n start: [{\n token: [\n \"constant.language.instrument.alda\",\n \"constant.language.instrument.alda\",\n \"meta.part.call.alda\",\n \"storage.type.nickname.alda\",\n \"meta.part.call.alda\"\n ],\n regex: /^([a-zA-Z]{2}[\\w\\-+\\'()]*)((?:\\s*\\/\\s*[a-zA-Z]{2}[\\w\\-+\\'()]*)*)(?:(\\s*)(\\\"[a-zA-Z]{2}[\\w\\-+\\'()]*\\\"))?(\\s*:)/\n }, {\n token: [\n \"text\",\n \"entity.other.inherited-class.voice.alda\",\n \"text\"\n ],\n regex: /^(\\s*)(V\\d+)(:)/\n }, {\n token: \"comment.line.number-sign.alda\",\n regex: /#.*$/\n }, {\n token: \"entity.name.function.pipe.measure.alda\",\n regex: /\\|/\n }, {\n token: \"comment.block.inline.alda\",\n regex: /\\(comment\\b/,\n push: [{\n token: \"comment.block.inline.alda\",\n regex: /\\)/,\n next: \"pop\"\n }, {\n defaultToken: \"comment.block.inline.alda\"\n }]\n }, {\n token: \"entity.name.function.marker.alda\",\n regex: /%[a-zA-Z]{2}[\\w\\-+\\'()]*/\n }, {\n token: \"entity.name.function.at-marker.alda\",\n regex: /@[a-zA-Z]{2}[\\w\\-+\\'()]*/\n }, {\n token: \"keyword.operator.octave-change.alda\",\n regex: /\\bo\\d+\\b/\n }, {\n token: \"keyword.operator.octave-shift.alda\",\n regex: /[><]/\n }, {\n token: \"keyword.operator.repeat.alda\",\n regex: /\\*\\s*\\d+/\n }, {\n token: \"string.quoted.operator.timing.alda\",\n regex: /[.]|r\\d*(?:s|ms)?/\n }, {\n token: \"text\",\n regex: /([cdefgab])/,\n next: \"pitch\"\n }, {\n token: \"string.quoted.operator.timing.alda\",\n regex: /~/,\n next: \"timing\"\n }, {\n token: \"punctuation.section.embedded.cram.alda\",\n regex: /\\}/,\n next: \"timing\"\n }, {\n token: \"constant.numeric.subchord.alda\",\n regex: /\\//\n }, {\n todo: {\n token: \"punctuation.section.embedded.cram.alda\",\n regex: /\\{/,\n push: [{\n token: \"punctuation.section.embedded.cram.alda\",\n regex: /\\}/,\n next: \"pop\"\n }, {\n include: \"$self\"\n }]\n }\n }, {\n todo: {\n token: \"keyword.control.sequence.alda\",\n regex: /\\[/,\n push: [{\n token: \"keyword.control.sequence.alda\",\n regex: /\\]/,\n next: \"pop\"\n }, {\n include: \"$self\"\n }]\n }\n }, {\n token: \"meta.inline.clojure.alda\",\n regex: /\\(/,\n push: [{\n token: \"meta.inline.clojure.alda\",\n regex: /\\)/,\n next: \"pop\"\n }, {\n include: \"source.clojure\"\n }, {\n defaultToken: \"meta.inline.clojure.alda\"\n }]\n }]\n };\n this.normalizeRules();\n};\nAldaHighlightRules.metaData = {\n scopeName: \"source.alda\",\n fileTypes: [\"alda\"],\n name: \"Alda\"\n};\noop.inherits(AldaHighlightRules, TextHighlightRules);\nexports.AldaHighlightRules = AldaHighlightRules;\n\n});\n\nace.define(\"ace/mode/folding/cstyle\",[\"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 (commentRegex) {\n if (commentRegex) {\n this.foldingStartMarker = new RegExp(this.foldingStartMarker.source.replace(/\\|[^|]*?$/, \"|\" + commentRegex.start));\n this.foldingStopMarker = new RegExp(this.foldingStopMarker.source.replace(/\\|[^|]*?$/, \"|\" + commentRegex.end));\n }\n};\noop.inherits(FoldMode, BaseFoldMode);\n(function () {\n this.foldingStartMarker = /([\\{\\[\\(])[^\\}\\]\\)]*$|^\\s*(\\/\\*)/;\n this.foldingStopMarker = /^[^\\[\\{\\(]*([\\}\\]\\)])|^[\\s\\*]*(\\*\\/)/;\n this.singleLineBlockCommentRe = /^\\s*(\\/\\*).*\\*\\/\\s*$/;\n this.tripleStarBlockCommentRe = /^\\s*(\\/\\*\\*\\*).*\\*\\/\\s*$/;\n this.startRegionRe = /^\\s*(\\/\\*|\\/\\/)#?region\\b/;\n this._getFoldWidgetBase = this.getFoldWidget;\n this.getFoldWidget = function (session, foldStyle, row) {\n var line = session.getLine(row);\n if (this.singleLineBlockCommentRe.test(line)) {\n if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))\n return \"\";\n }\n var fw = this._getFoldWidgetBase(session, foldStyle, row);\n if (!fw && this.startRegionRe.test(line))\n return \"start\"; // lineCommentRegionStart\n return fw;\n };\n this.getFoldWidgetRange = function (session, foldStyle, row, forceMultiline) {\n var line = session.getLine(row);\n if (this.startRegionRe.test(line))\n return this.getCommentRegionBlock(session, line, row);\n var match = line.match(this.foldingStartMarker);\n if (match) {\n var i = match.index;\n if (match[1])\n return this.openingBracketBlock(session, match[1], row, i);\n var range = session.getCommentFoldRange(row, i + match[0].length, 1);\n if (range && !range.isMultiLine()) {\n if (forceMultiline) {\n range = this.getSectionRange(session, row);\n }\n else if (foldStyle != \"all\")\n range = null;\n }\n return range;\n }\n if (foldStyle === \"markbegin\")\n return;\n var match = line.match(this.foldingStopMarker);\n if (match) {\n var i = match.index + match[0].length;\n if (match[1])\n return this.closingBracketBlock(session, match[1], row, i);\n return session.getCommentFoldRange(row, i, -1);\n }\n };\n this.getSectionRange = function (session, row) {\n var line = session.getLine(row);\n var startIndent = line.search(/\\S/);\n var startRow = row;\n var startColumn = line.length;\n row = row + 1;\n var endRow = row;\n var maxRow = session.getLength();\n while (++row < maxRow) {\n line = session.getLine(row);\n var indent = line.search(/\\S/);\n if (indent === -1)\n continue;\n if (startIndent > indent)\n break;\n var subRange = this.getFoldWidgetRange(session, \"all\", row);\n if (subRange) {\n if (subRange.start.row <= startRow) {\n break;\n }\n else if (subRange.isMultiLine()) {\n row = subRange.end.row;\n }\n else if (startIndent == indent) {\n break;\n }\n }\n endRow = row;\n }\n return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);\n };\n this.getCommentRegionBlock = function (session, line, row) {\n var startColumn = line.search(/\\s*$/);\n var maxRow = session.getLength();\n var startRow = row;\n var re = /^\\s*(?:\\/\\*|\\/\\/|--)#?(end)?region\\b/;\n var depth = 1;\n while (++row < maxRow) {\n line = session.getLine(row);\n var m = re.exec(line);\n if (!m)\n continue;\n if (m[1])\n depth--;\n else\n depth++;\n if (!depth)\n break;\n }\n var endRow = row;\n if (endRow > startRow) {\n return new Range(startRow, startColumn, endRow, line.length);\n }\n };\n}).call(FoldMode.prototype);\n\n});\n\nace.define(\"ace/mode/alda\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text\",\"ace/mode/alda_highlight_rules\",\"ace/mode/folding/cstyle\"], function(require, exports, module){/*\n THIS FILE WAS AUTOGENERATED BY mode.tmpl.js\n*/\n\"use strict\";\nvar oop = require(\"../lib/oop\");\nvar TextMode = require(\"./text\").Mode;\nvar AldaHighlightRules = require(\"./alda_highlight_rules\").AldaHighlightRules;\nvar FoldMode = require(\"./folding/cstyle\").FoldMode;\nvar Mode = function () {\n this.HighlightRules = AldaHighlightRules;\n this.foldingRules = new FoldMode();\n};\noop.inherits(Mode, TextMode);\n(function () {\n this.$id = \"ace/mode/alda\";\n}).call(Mode.prototype);\nexports.Mode = Mode;\n\n}); (function() {\n ace.require([\"ace/mode/alda\"], 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","AldaHighlightRules","Range","BaseFoldMode","FoldMode","commentRegex","session","foldStyle","row","line","fw","forceMultiline","match","i","range","startIndent","startRow","startColumn","endRow","maxRow","indent","subRange","re","depth","m","TextMode","Mode"],"mappings":"gaAAA,IAAI,OAAO,gCAAgC,CAAC,UAAU,UAAU,SAAS,cAAc,+BAA+B,EAAG,SAASA,EAASC,EAASC,EAAO,CAE3J,IAAIC,EAAMH,EAAQ,YAAY,EAC1BI,EAAqBJ,EAAQ,wBAAwB,EAAE,mBACvDK,EAAqB,UAAY,CACjC,KAAK,OAAS,CACV,MAAO,CAAC,CACA,MAAO,yCACP,MAAO,eACvB,EAAe,CACC,MAAO,GACP,MAAO,GACP,KAAM,QACtB,CAAa,EACL,OAAQ,CAAC,CACD,MAAO,qCACP,MAAO,cACvB,EAAe,CACC,MAAO,GACP,MAAO,GACP,KAAM,OACtB,CAAa,EACL,MAAO,CAAC,CACA,MAAO,CACH,oCACA,oCACA,sBACA,6BACA,qBACH,EACD,MAAO,+GACvB,EAAe,CACC,MAAO,CACH,OACA,0CACA,MACH,EACD,MAAO,iBACvB,EAAe,CACC,MAAO,gCACP,MAAO,MACvB,EAAe,CACC,MAAO,yCACP,MAAO,IACvB,EAAe,CACC,MAAO,4BACP,MAAO,cACP,KAAM,CAAC,CACC,MAAO,4BACP,MAAO,KACP,KAAM,KAC9B,EAAuB,CACC,aAAc,2BACtC,CAAqB,CACrB,EAAe,CACC,MAAO,mCACP,MAAO,0BACvB,EAAe,CACC,MAAO,sCACP,MAAO,0BACvB,EAAe,CACC,MAAO,sCACP,MAAO,UACvB,EAAe,CACC,MAAO,qCACP,MAAO,MACv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