1
0
Selaa lähdekoodia

Setting the right shim dependencies to have syntax colouring

Herbert Vojčík 11 vuotta sitten
vanhempi
commit
a95a309a9e
2 muutettua tiedostoa jossa 9 lisäystä ja 4 poistoa
  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'
-	]);
-});
+]);