(name)
| 4 | (function() { |
| 5 | var mode = CodeMirror.getMode({indentUnit: 2}, "javascript"); |
| 6 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } |
| 7 | |
| 8 | MT("locals", |
| 9 | "[keyword function] [variable foo]([def a], [def b]) { [keyword var] [def c] [operator =] [number 10]; [keyword return] [variable-2 a] [operator +] [variable-2 c] [operator +] [variable d]; }"); |