disabled interpolations in normal regexes

This commit is contained in:
satyr
2010-10-04 21:50:50 +09:00
parent 493fa7d8fe
commit cdd033ffb0
10 changed files with 194 additions and 243 deletions

View File

@@ -60,7 +60,7 @@
compile = function(source, topLevel) {
return path.exists(source, function(exists) {
if (!(exists)) {
throw new Error("File not found: " + (source));
throw new Error("File not found: " + source);
}
return fs.stat(source, function(err, stats) {
if (stats.isDirectory()) {
@@ -168,11 +168,11 @@
js = ' ';
}
return fs.writeFile(jsPath, js, function(err) {
return opts.compile && opts.watch ? puts("Compiled " + (source)) : undefined;
return opts.compile && opts.watch ? puts("Compiled " + source) : undefined;
});
};
return path.exists(dir, function(exists) {
return exists ? compile() : exec("mkdir -p " + (dir), compile);
return exists ? compile() : exec("mkdir -p " + dir, compile);
});
};
lint = function(js) {
@@ -195,7 +195,7 @@
token = tokens[_i];
_result.push((function() {
_ref2 = [token[0], token[1].toString().replace(/\n/, '\\n')], tag = _ref2[0], value = _ref2[1];
return "[" + (tag) + " " + (value) + "]";
return "[" + tag + " " + value + "]";
})());
}
return _result;