{ name = "meta.function.js"; match = "^\\s*(var\\b)?\\s*([a-zA-Z_]\\w*)\\s=\\s*
(function)\s*\(([^)]*)\)"; captures = { 1 = { name = "storage.type.js"; }; 2 = { name = "entity.name.function.js"; }; 3 = { name = "storage.type.function.js"; }; 4 = { name = "variable.parameter.function.js"; }; }; },
Ar, I'll never get it right! The question mark up there near var should of course be removed, thus match = "^\s*(var\b)\s*([a-zA-Z_]\w*)\s=\s* (function)\s*\(([^)]*)\)";
hope someone finds this useful :)
Andreas