ignore #! in the js worker

This commit is contained in:
Fabian Jakobs 2011-02-03 14:45:45 +01:00
commit c9f3abb199
2 changed files with 11 additions and 7 deletions

View file

@ -16,6 +16,7 @@ oop.inherits(JavaScriptWorker, Mirror);
this.onUpdate = function() {
var value = this.doc.getValue();
value = value.replace(/^#!.*\n/, "");
// var start = new Date();
var parser = require("ace/narcissus/jsparse");