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

Unified Diff: Source/devtools/front_end/source_frame/CodeMirrorTextEditor.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/script_formatter_worker/ScriptFormatterWorker.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js
diff --git a/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js b/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js
index 74c01b64bae8affb42d1d97626f831d00260050c..35e9ed2f95c8b8ea7fcc679d07d88be4f929bf27 100644
--- a/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js
+++ b/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js
@@ -2114,7 +2114,7 @@ WebInspector.CodeMirrorTextEditor._overrideModeWithPrefixedTokens = function(mod
function tokenOverride(superToken, stream, state)
{
var token = superToken(stream, state);
- return token ? tokenPrefix + token : token;
+ return token ? tokenPrefix + token.split(/ +/).join(" " + tokenPrefix) : token;
}
}
« no previous file with comments | « Source/devtools/front_end/script_formatter_worker/ScriptFormatterWorker.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698