Commit 7e2466f1 for codemirror.net

commit 7e2466f1653faf3832302fdee508ad886d5431e7
Author: mtaran-google <mtaran@google.com>
Date:   Tue Apr 6 15:15:57 2021 -0700

    [runmode] Pass the mode object to the callback

    Without the mode object, it's not possible to call the mode's `indent` method to compute how much a given line should be indented (which we now have a need to do in a standalone way).

diff --git a/addon/runmode/runmode.js b/addon/runmode/runmode.js
index 2cae6863..f5d58e24 100644
--- a/addon/runmode/runmode.js
+++ b/addon/runmode/runmode.js
@@ -67,7 +67,7 @@ CodeMirror.runMode = function(string, modespec, callback, options) {
     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);
+      callback(stream.current(), style, i, stream.start, state, mode);
       stream.start = stream.pos;
     }
   }