From 47afc70979b481eaaff64b0710925895da098128 Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Wed, 13 Mar 2024 00:32:45 -0400 Subject: [PATCH] Update Lua config.toml (#9260) Release Notes: - Added autoclosing of `(` and `'` in Lua. --- crates/languages/src/lua/config.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/languages/src/lua/config.toml b/crates/languages/src/lua/config.toml index 19577fed91..6c3aee09ea 100644 --- a/crates/languages/src/lua/config.toml +++ b/crates/languages/src/lua/config.toml @@ -2,10 +2,12 @@ name = "Lua" grammar = "lua" path_suffixes = ["lua"] line_comments = ["-- "] -autoclose_before = ",]}" +autoclose_before = ";:.,=}])>" brackets = [ { start = "{", end = "}", close = true, newline = true }, { start = "[", end = "]", close = true, newline = true }, + { start = "(", end = ")", close = true, newline = true }, { start = "\"", end = "\"", close = true, newline = false, not_in = ["string"] }, + { start = "'", end = "'", close = false, newline = false, not_in = ["string"] }, ] collapsed_placeholder = "--[ ... ]--"