Current File : /home/pacjaorg/public_html/kmm/media/vendor/codemirror/mode/htmlembedded/htmlembedded.min.js |
(function(e){typeof exports=="object"&&typeof module=="object"?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../../addon/mode/multiplex")):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../../addon/mode/multiplex"],e):e(CodeMirror)})(function(e){"use strict";e.defineMode("htmlembedded",function(d,t){var m=t.closeComment||"--%>";return e.multiplexingMode(e.getMode(d,"htmlmixed"),{open:t.openComment||"<%--",close:m,delimStyle:"comment",mode:{token:function(i){return i.skipTo(m)||i.skipToEnd(),"comment"}}},{open:t.open||t.scriptStartRegex||"<%",close:t.close||t.scriptEndRegex||"%>",mode:e.getMode(d,t.scriptingModeSpec)})},"htmlmixed"),e.defineMIME("application/x-ejs",{name:"htmlembedded",scriptingModeSpec:"javascript"}),e.defineMIME("application/x-aspx",{name:"htmlembedded",scriptingModeSpec:"text/x-csharp"}),e.defineMIME("application/x-jsp",{name:"htmlembedded",scriptingModeSpec:"text/x-java"}),e.defineMIME("application/x-erb",{name:"htmlembedded",scriptingModeSpec:"ruby"})});