Updating CodeMirror to version 2.0

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2011-03-29 11:26:44 -07:00
parent 7b8f95d50e
commit fafa2efcbb
3 changed files with 167 additions and 86 deletions

View File

@@ -293,7 +293,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
}
function functiondef(type, value) {
if (type == "variable") {register(value); return cont(functiondef);}
if (type == "(") return cont(pushcontext, commasep(funarg, ")"), statement, popcontext);
if (type == "(") return cont(pushlex(")"), pushcontext, commasep(funarg, ")"), poplex, statement, popcontext);
}
function funarg(type, value) {
if (type == "variable") {register(value); return cont();}