comment JavaScript Syntax: Lively Kernel fileTypes js foldingStartMarker ^.*\bfunction\s*(\w+\s*)?\([^\)]*\)(\s*\{[^\}]*)?\s*$ foldingStopMarker ^\s*\} keyEquivalent ^~K name JavaScriptLK patterns captures 1 name entity.name.type.class.js match ^.*subclass\([\'|"](.*)[\'|"].*$ name meta.subclass.js captures 1 name entity.name.type.classextension.js match ^(.*)\.(addMethods|addProperties)\(\{\s*$ name meta.addMethods.js captures 1 name support.class.js 2 name support.constant.js 3 name entity.name.function.js 4 name storage.type.function.js 5 name punctuation.definition.parameters.begin.js 6 name variable.parameter.function.js 7 name punctuation.definition.parameters.end.js comment match stuff like: Sound.prototype.play = function() { … } match ([a-zA-Z_?.$][\w?.$]*)\.(prototype)\.([a-zA-Z_?.$][\w?.$]*)\s*=\s*(function)?\s*(\()(.*?)(\)) name meta.function.prototype.js captures 1 name support.class.js 2 name support.constant.js comment match stuff like: Sound.prototype.play = myfunc match ([a-zA-Z_?.$][\w?.$]*)\.(prototype)\.([a-zA-Z_?.$][\w?.$]*)\s*=\s* name meta.function.js captures 1 name support.class.js 3 name storage.type.function.js 4 name punctuation.definition.parameters.begin.js 5 name variable.parameter.function.js 6 name punctuation.definition.parameters.end.js comment match stuff like: Sound.play = function() { … } match ([a-zA-Z_?.$][\w?.$]*)\.([a-zA-Z_?.$][\w?.$]*)\s*=\s*(function)\s*(\()(.*?)(\)) name meta.function.js captures 2 name storage.type.function.js 3 name punctuation.definition.parameters.begin.js 4 name variable.parameter.method.js 5 name punctuation.definition.parameters.end.js comment match stuff like: play = function() { … } match ([a-zA-Z_?$][\w?$]*)\s*=\s*(function)\s*(\()(.*?)(\)) name meta.function.js captures 1 name storage.type.function.js 2 name entity.name.function.js 3 name punctuation.definition.parameters.begin.js 4 name variable.parameter.function.js 5 name punctuation.definition.parameters.end.js comment match regular function like: function myFunc(arg) { … } match \b(function)\s+([a-zA-Z_$]\w*)?\s*(\()(.*?)(\)) name meta.function.js captures 1 name entity.name.method.js 2 name storage.type.function.js 3 name punctuation.definition.parameters.begin.js 4 name variable.parameter.function.js 5 name punctuation.definition.parameters.end.js comment match stuff like: foobar: function() { … } match \b([a-zA-Z_?.$][\w?.$]*)\s*:\s*\b(function)?\s*(\()(.*?)(\)) name meta.function.json.js captures 1 name entity.name.method.js 2 name storage.type.function.js 3 name punctuation.definition.parameters.begin.js 4 name variable.parameter.function.js 5 name punctuation.definition.parameters.end.js comment match stuff like: newRelaySetter: function newRelaySetter(targetName, optConv) { match \b([a-zA-Z_?.$][\w?.$]*)\s*:\s*\b(function)\s*\b\w*(\()(.*?)(\)) name meta.function.json.js captures 1 name string.quoted.single.js 10 name punctuation.definition.parameters.begin.js 11 name variable.parameter.function.js 12 name punctuation.definition.parameters.end.js 2 name punctuation.definition.string.begin.js 3 name entity.name.function.js 4 name punctuation.definition.string.end.js 5 name string.quoted.double.js 6 name punctuation.definition.string.begin.js 7 name entity.name.function.js 8 name punctuation.definition.string.end.js 9 name entity.name.function.js comment Attempt to match "foo": function match (?:((')(.*?)('))|((")(.*?)(")))\s*:\s*\b(function)?\s*(\()(.*?)(\)) name meta.function.json.js captures 1 name keyword.operator.new.js match (new)\s+(\w+(?:\.\w*)?) name meta.class.instance.constructor match \b(console)\b include source.js scopeName source.js.lk uuid C1C04C90-FB67-46CA-B4C3-D4883293A2A9