| OLD | NEW |
| 1 // CodeMirror, copyright (c) by Marijn Haverbeke and others | 1 // CodeMirror, copyright (c) by Marijn Haverbeke and others |
| 2 // Distributed under an MIT license: http://codemirror.net/LICENSE | 2 // Distributed under an MIT license: http://codemirror.net/LICENSE |
| 3 | 3 |
| 4 (function(mod) { | 4 (function(mod) { |
| 5 if (typeof exports == "object" && typeof module == "object") // CommonJS | 5 if (typeof exports == "object" && typeof module == "object") // CommonJS |
| 6 mod(require("../../lib/codemirror"), require("../xml/xml"), require("../java
script/javascript")) | 6 mod(require("../../lib/codemirror"), require("../xml/xml"), require("../java
script/javascript")) |
| 7 else if (typeof define == "function" && define.amd) // AMD | 7 else if (typeof define == "function" && define.amd) // AMD |
| 8 define(["../../lib/codemirror", "../xml/xml", "../javascript/javascript"], m
od) | 8 define(["../../lib/codemirror", "../xml/xml", "../javascript/javascript"], m
od) |
| 9 else // Plain browser env | 9 else // Plain browser env |
| 10 mod(CodeMirror) | 10 mod(CodeMirror) |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 return state.context.mode.indent(state.context.state, textAfter, fullLin
e) | 137 return state.context.mode.indent(state.context.state, textAfter, fullLin
e) |
| 138 }, | 138 }, |
| 139 | 139 |
| 140 innerMode: function(state) { | 140 innerMode: function(state) { |
| 141 return state.context | 141 return state.context |
| 142 } | 142 } |
| 143 } | 143 } |
| 144 }, "xml", "javascript") | 144 }, "xml", "javascript") |
| 145 | 145 |
| 146 CodeMirror.defineMIME("text/jsx", "jsx") | 146 CodeMirror.defineMIME("text/jsx", "jsx") |
| 147 CodeMirror.defineMIME("text/typescript-jsx", {name: "jsx", base: {name: "javas
cript", typescript: true}}) |
| 147 }); | 148 }); |
| OLD | NEW |