1
0
Prechádzať zdrojové kódy

Setting the right shim dependencies to have syntax colouring

Herbert Vojčík 11 rokov pred
rodič
commit
a95a309a9e
2 zmenil súbory, kde vykonal 9 pridanie a 4 odobranie
  1. 6 0
      support/amber.js
  2. 3 4
      support/codemirror.js

+ 6 - 0
support/amber.js

@@ -85,6 +85,12 @@ require = function (require) {
             'amber_lib/jquery-tabby/jquery.textarea': {
                 deps: [ 'jquery' ]
             },
+            'amber_core/IDE': {
+                deps: [ 'amber_lib/codemirror/mode/smalltalk/smalltalk' ]
+            },
+            'amber_lib/codemirror/mode/smalltalk/smalltalk': {
+                deps: [ '../../lib/codemirror' ]
+            },
             'amber_lib/codemirror/addon/hint/show-hint': {
                 deps: [ '../../lib/codemirror' ]
             },

+ 3 - 4
support/codemirror.js

@@ -1,9 +1,8 @@
-define(["amber_lib/codemirror/lib/codemirror"], function () {
-	define([
+define([
+		'amber_lib/codemirror/lib/codemirror',
 		'amber_lib/codemirror/mode/smalltalk/smalltalk',
 		'amber_lib/codemirror/addon/hint/show-hint',
 		'css!amber_lib/codemirror/theme/ambiance',
 		'css!amber_lib/codemirror/lib/codemirror',
 		'css!amber_lib/codemirror/addon/hint/show-hint'
-	]);
-});
+]);