Skip to content

Commit

Permalink
[coffeescript mode] Stop strangely fetching options from conf.mode
Browse files Browse the repository at this point in the history
That's what the parser configuration object is for. Also,
I am unsure how this was supposed to even work.

Issue codemirror#2996
  • Loading branch information
marijnh committed Dec 19, 2014
1 parent b35c14c commit 1ace5ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mode/coffeescript/coffeescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
})(function(CodeMirror) {
"use strict";

CodeMirror.defineMode("coffeescript", function(conf) {
CodeMirror.defineMode("coffeescript", function(conf, parserConf) {
var ERRORCLASS = "error";

function wordRegexp(words) {
Expand Down Expand Up @@ -191,7 +191,7 @@ CodeMirror.defineMode("coffeescript", function(conf) {
}
}
if (singleline) {
if (conf.mode.singleLineStringErrors) {
if (parserConf.singleLineStringErrors) {
outclass = ERRORCLASS;
} else {
state.tokenize = tokenBase;
Expand Down

0 comments on commit 1ace5ad

Please sign in to comment.