Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
mishoo committed Oct 10, 2012
1 parent 83955b1 commit 3ad7ee6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/ymacs-mode-js.js
Expand Up @@ -388,11 +388,13 @@ DEFINE_SINGLETON("Ymacs_Keymap_CLanguages", Ymacs_Keymap, function(D, P){

});

DEFINE_SINGLETON("Ymacs_Keymap_JS", Ymacs_Keymap_CLanguages().constructor, function(D, P){});

/* -----[ Mode entry point ]----- */

Ymacs_Buffer.newMode("javascript_mode", function(useDL) {
var tok = this.tokenizer;
var keymap = Ymacs_Keymap_CLanguages();
var keymap = Ymacs_Keymap_JS();
this.setTokenizer(new Ymacs_Tokenizer({ buffer: this, type: useDL ? "js-dynarchlib" : "js" }));
this.pushKeymap(keymap);
var was_paren_match = this.cmd("paren_match_mode", true);
Expand Down

0 comments on commit 3ad7ee6

Please sign in to comment.