Skip to content

Commit

Permalink
[runmode.node addon] Export countColumn again
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Jun 18, 2020
1 parent 001e07f commit f87e118
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/addon/runmode/codemirror.node.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import StringStream from "../../util/StringStream.js"
import * as modeMethods from "../../modes.js"
import {countColumn} from "../../util/misc.js"

// Copy StringStream and mode methods into exports (CodeMirror) object.
exports.StringStream = StringStream
exports.countColumn = countColumn
for (var exported in modeMethods) exports[exported] = modeMethods[exported]

// Shim library CodeMirror with the minimal CodeMirror defined above.
Expand All @@ -16,4 +18,4 @@ exports.defineMIME("text/plain", "null")
exports.registerHelper = exports.registerGlobalHelper = Math.min
exports.splitLines = function(string) { return string.split(/\r?\n|\r/); }

exports.defaults = { indentUnit: 2 }
exports.defaults = { indentUnit: 2 }

0 comments on commit f87e118

Please sign in to comment.