Skip to content

Commit

Permalink
Bug fixes for loading the mode in a brackets extension
Browse files Browse the repository at this point in the history
  • Loading branch information
SpencerPark committed Jan 4, 2017
1 parent f6a1f72 commit c6d6b18
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions brackets-plugin/main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
define(function (require, exports, module) {
"use strict";
require('mode/mellowd');

const LanguageManager = brackets.getModule("language/LanguageManager"),
CodeMirror = brackets.getModule("thirdparty/CodeMirror2/lib/codemirror");
CodeMirror = brackets.getModule("thirdparty/CodeMirror2/lib/codemirror");

require('mode/mellowd');

LanguageManager.defineLanguage("mellowd", {
name: "MellowD",
Expand Down
2 changes: 1 addition & 1 deletion brackets-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"categories": "language",
"keywords": [".mlod", "MellowD", "language", "highlight"],
"homepage": "https://github.com/SpencerPark/mellowd-lang-support",
"version": "1.0.0",
"version": "1.0.2",
"author": "Spencer Park",
"license": "MIT",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion codemirror/mellowd.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as CodeMirror from "codemirror";
///<reference types="codemirror"/>

import StringStream = CodeMirror.StringStream;

Expand Down

0 comments on commit c6d6b18

Please sign in to comment.