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

Unified Diff: Source/devtools/front_end/cm/headlesscodemirror.js

Issue 354833004: DevTools: [CodeMirror] roll CodeMirror to version @e20d175 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address comments Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/cm/css.js ('k') | Source/devtools/front_end/cm/htmlembedded.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/cm/headlesscodemirror.js
diff --git a/Source/devtools/front_end/cm/headlesscodemirror.js b/Source/devtools/front_end/cm/headlesscodemirror.js
index 67c7866b76a720e2be0cb16e66aa0d3e9a2f47c6..a2740e4cc7e9562c7508e249c18709a34a4de782 100644
--- a/Source/devtools/front_end/cm/headlesscodemirror.js
+++ b/Source/devtools/front_end/cm/headlesscodemirror.js
@@ -1,6 +1,9 @@
// Content of the function is equal to runmode-standalone.js file
// from CodeMirror distribution
(function(window) {
+// CodeMirror, copyright (c) by Marijn Haverbeke and others
+// Distributed under an MIT license: http://codemirror.net/LICENSE
+
window.CodeMirror = {};
(function() {
@@ -142,6 +145,7 @@ CodeMirror.runMode = function (string, modespec, callback, options) {
for (var i = 0, e = lines.length; i < e; ++i) {
if (i) callback("\n");
var stream = new CodeMirror.StringStream(lines[i]);
+ if (!stream.string && mode.blankLine) mode.blankLine(state);
while (!stream.eol()) {
var style = mode.token(stream, state);
callback(stream.current(), style, i, stream.start, state);
@@ -150,5 +154,4 @@ CodeMirror.runMode = function (string, modespec, callback, options) {
}
};
})();
-
}(this))
« no previous file with comments | « Source/devtools/front_end/cm/css.js ('k') | Source/devtools/front_end/cm/htmlembedded.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698