vendor/assets/javascripts/ace/mode-praat.js in ace-rails-ap-4.1.1 vs vendor/assets/javascripts/ace/mode-praat.js in ace-rails-ap-4.1.2

- old
+ new

@@ -410,24 +410,24 @@ }).call(FoldMode.prototype); }); -define("ace/mode/praat",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/praat_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/folding/cstyle"], function(require, exports, module) { +define("ace/mode/praat",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/praat_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextMode = require("./text").Mode; var PraatHighlightRules = require("./praat_highlight_rules").PraatHighlightRules; var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent; -var Range = require("../range").Range; var CStyleFoldMode = require("./folding/cstyle").FoldMode; var Mode = function() { this.HighlightRules = PraatHighlightRules; - this.$outdent = new MatchingBraceOutdent(); + this.foldingRules = new CStyleFoldMode(); + this.$behaviour = this.$defaultBehaviour; }; oop.inherits(Mode, TextMode); (function() { @@ -442,10 +442,10 @@ if (tokens.length && tokens[tokens.length-1].type == "comment") { return indent; } if (state == "start") { - var match = line.match(/^.*[\{\(\[\:]\s*$/); + var match = line.match(/^.*[\{\(\[:]\s*$/); if (match) { indent += tab; } }