mode-textile-5dd2b86c.js.map 7.0 KB

1
  1. {"version":3,"file":"mode-textile-5dd2b86c.js","sources":["../../node_modules/ace-builds/src-noconflict/mode-textile.js"],"sourcesContent":["ace.define(\"ace/mode/textile_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 TextileHighlightRules = function () {\n this.$rules = {\n \"start\": [\n {\n token: function (value) {\n if (value.charAt(0) == \"h\")\n return \"markup.heading.\" + value.charAt(1);\n else\n return \"markup.heading\";\n },\n regex: \"h1|h2|h3|h4|h5|h6|bq|p|bc|pre\",\n next: \"blocktag\"\n },\n {\n token: \"keyword\",\n regex: \"[\\\\*]+|[#]+\"\n },\n {\n token: \"text\",\n regex: \".+\"\n }\n ],\n \"blocktag\": [\n {\n token: \"keyword\",\n regex: \"\\\\. \",\n next: \"start\"\n },\n {\n token: \"keyword\",\n regex: \"\\\\(\",\n next: \"blocktagproperties\"\n }\n ],\n \"blocktagproperties\": [\n {\n token: \"keyword\",\n regex: \"\\\\)\",\n next: \"blocktag\"\n },\n {\n token: \"string\",\n regex: \"[a-zA-Z0-9\\\\-_]+\"\n },\n {\n token: \"keyword\",\n regex: \"#\"\n }\n ]\n };\n};\noop.inherits(TextileHighlightRules, TextHighlightRules);\nexports.TextileHighlightRules = TextileHighlightRules;\n\n});\n\nace.define(\"ace/mode/matching_brace_outdent\",[\"require\",\"exports\",\"module\",\"ace/range\"], function(require, exports, module){\"use strict\";\nvar Range = require(\"../range\").Range;\nvar MatchingBraceOutdent = function () { };\n(function () {\n this.checkOutdent = function (line, input) {\n if (!/^\\s+$/.test(line))\n return false;\n return /^\\s*\\}/.test(input);\n };\n this.autoOutdent = function (doc, row) {\n var line = doc.getLine(row);\n var match = line.match(/^(\\s*\\})/);\n if (!match)\n return 0;\n var column = match[1].length;\n var openBracePos = doc.findMatchingBracket({ row: row, column: column });\n if (!openBracePos || openBracePos.row == row)\n return 0;\n var indent = this.$getIndent(doc.getLine(openBracePos.row));\n doc.replace(new Range(row, 0, row, column - 1), indent);\n };\n this.$getIndent = function (line) {\n return line.match(/^\\s*/)[0];\n };\n}).call(MatchingBraceOutdent.prototype);\nexports.MatchingBraceOutdent = MatchingBraceOutdent;\n\n});\n\nace.define(\"ace/mode/textile\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text\",\"ace/mode/textile_highlight_rules\",\"ace/mode/matching_brace_outdent\"], function(require, exports, module){\"use strict\";\nvar oop = require(\"../lib/oop\");\nvar TextMode = require(\"./text\").Mode;\nvar TextileHighlightRules = require(\"./textile_highlight_rules\").TextileHighlightRules;\nvar MatchingBraceOutdent = require(\"./matching_brace_outdent\").MatchingBraceOutdent;\nvar Mode = function () {\n this.HighlightRules = TextileHighlightRules;\n this.$outdent = new MatchingBraceOutdent();\n this.$behaviour = this.$defaultBehaviour;\n};\noop.inherits(Mode, TextMode);\n(function () {\n this.type = \"text\";\n this.getNextLineIndent = function (state, line, tab) {\n if (state == \"intag\")\n return tab;\n return \"\";\n };\n this.checkOutdent = function (state, line, input) {\n return this.$outdent.checkOutdent(line, input);\n };\n this.autoOutdent = function (state, doc, row) {\n this.$outdent.autoOutdent(doc, row);\n };\n this.$id = \"ace/mode/textile\";\n this.snippetFileId = \"ace/snippets/textile\";\n}).call(Mode.prototype);\nexports.Mode = Mode;\n\n}); (function() {\n ace.require([\"ace/mode/textile\"], 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","TextileHighlightRules","value","Range","MatchingBraceOutdent","line","input","doc","row","match","column","openBracePos","indent","TextMode","Mode","state","tab","m"],"mappings":"gaAAA,IAAI,OAAO,mCAAmC,CAAC,UAAU,UAAU,SAAS,cAAc,+BAA+B,EAAG,SAASA,EAASC,EAASC,EAAO,C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