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

Side by Side Diff: Source/devtools/front_end/cm/headlesscodemirror.js

Issue 216973004: DevTools: roll CodeMirror to v4.0.3 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: support autocomplete with multiselections Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/cm/comment.js ('k') | Source/devtools/front_end/cm/markselection.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Content of the function is equal to runmode-standalone.js file 1 // Content of the function is equal to runmode-standalone.js file
2 // from CodeMirror distribution 2 // from CodeMirror distribution
3 (function(window) { 3 (function(window) {
4 /* Just enough of CodeMirror to run runMode under node.js */
5
6 window.CodeMirror = {}; 4 window.CodeMirror = {};
7 5
8 (function() { 6 (function() {
9 "use strict"; 7 "use strict";
10 8
11 function splitLines(string){ return string.split(/\r?\n|\r/); }; 9 function splitLines(string){ return string.split(/\r?\n|\r/); };
12 10
13 function StringStream(string) { 11 function StringStream(string) {
14 this.pos = this.start = 0; 12 this.pos = this.start = 0;
15 this.string = string; 13 this.string = string;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 if (i) callback("\n"); 143 if (i) callback("\n");
146 var stream = new CodeMirror.StringStream(lines[i]); 144 var stream = new CodeMirror.StringStream(lines[i]);
147 while (!stream.eol()) { 145 while (!stream.eol()) {
148 var style = mode.token(stream, state); 146 var style = mode.token(stream, state);
149 callback(stream.current(), style, i, stream.start, state); 147 callback(stream.current(), style, i, stream.start, state);
150 stream.start = stream.pos; 148 stream.start = stream.pos;
151 } 149 }
152 } 150 }
153 }; 151 };
154 })(); 152 })();
153
155 }(this)) 154 }(this))
OLDNEW
« no previous file with comments | « Source/devtools/front_end/cm/comment.js ('k') | Source/devtools/front_end/cm/markselection.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698