vendor/assets/javascripts/codemirror/modes/pascal.js in codemirror-rails-2.36 vs vendor/assets/javascripts/codemirror/modes/pascal.js in codemirror-rails-3.00

- old
+ new

@@ -1,6 +1,6 @@ -CodeMirror.defineMode("pascal", function(config) { +CodeMirror.defineMode("pascal", function() { function words(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } @@ -74,10 +74,10 @@ } // Interface return { - startState: function(basecolumn) { + startState: function() { return {tokenize: null}; }, token: function(stream, state) { if (stream.eatSpace()) return null;