Skip to content

Commit

Permalink
fix: Change curly braces insertion behavior for Markdown to act the s…
Browse files Browse the repository at this point in the history
…ame as for other braces (#4994)
  • Loading branch information
mkslanc authored Nov 16, 2022
1 parent 28103d4 commit 2760234
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/mode/markdown.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
"use strict";

var oop = require("../lib/oop");
var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
var TextMode = require("./text").Mode;
var JavaScriptMode = require("./javascript").Mode;
var XmlMode = require("./xml").Mode;
var HtmlMode = require("./html").Mode;
var MarkdownHighlightRules = require("./markdown_highlight_rules").MarkdownHighlightRules;
var MarkdownFoldMode = require("./folding/markdown").FoldMode;

Expand All @@ -21,7 +19,7 @@ var Mode = function() {
});

this.foldingRules = new MarkdownFoldMode();
this.$behaviour = this.$defaultBehaviour;
this.$behaviour = new CstyleBehaviour({ braces: true });
};
oop.inherits(Mode, TextMode);

Expand Down

0 comments on commit 2760234

Please sign in to comment.