code.language: lua - tag(): user.code_imperative tag(): user.code_comment_line tag(): user.code_comment_block tag(): user.code_data_bool tag(): user.code_data_null tag(): user.code_functions tag(): user.code_functions_common tag(): user.code_libraries tag(): user.code_operators_array tag(): user.code_operators_assignment tag(): user.code_operators_bitwise tag(): user.code_operators_math # Use this tag if you use the stylua linter #tag(): user.stylua settings(): user.code_private_function_formatter = "SNAKE_CASE" user.code_public_function_formatter = "SNAKE_CASE" user.code_private_variable_formatter = "SNAKE_CASE" user.code_public_variable_formatter = "SNAKE_CASE" state local: "local" state end: "end" state then: "then" state repeat: "repeat" state until: "until" state return (null | nil): "return nil" state return true: "return true" state return false: "return false" state return table: user.insert_between("return {", "}") state append string: " .. " state label : insert("::") user.insert_formatted(text, "SNAKE_CASE") insert("::") require : user.code_insert_library("", code_libraries) key(end enter) state (variable | var) [] [over]: user.code_public_variable_formatter(text) state local (variable | var) [] [over]: insert("local ") user.code_private_variable_formatter(text) # for built in object methods, ex: foo:gsub() method : insert(":") user.code_public_function_formatter(text) insert("()") edit.left() self dot: "self." index : '["{word}"]' index (var | variable) : var = user.formatted_text(text, "SNAKE_CASE") insert("[{var}]") state return dick: user.insert_between("return {", "}")