Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/cm_modes/jsx.js

Issue 2772343006: DevTools: Roll CodeMirror to 5.25.1 (Closed)
Patch Set: stray space Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698