--- name: Lua fileTypes: - lua scopeName: source.lua uuid: 93E017CC-6F27-11D9-90EB-000D93589AF7 foldingStartMarker: ^\s*\b(function|if|for)\b|{[ \t]*$|\[\[ patterns: - name: meta.function.lua captures: "6": name: punctuation.definition.parameters.end.lua "1": name: keyword.control.lua "2": name: entity.name.function.scope.lua "3": name: entity.name.function.lua "4": name: punctuation.definition.parameters.begin.lua "5": name: variable.parameter.function.lua match: \b(function)\s+([a-zA-Z_.:]+[.:])?([a-zA-Z_]\w*)\s*(\()([^)]*)(\)) - name: constant.numeric.lua match: (?=?|(?