Update Lua config.toml (#9260)

Release Notes:

- Added autoclosing of `(` and `'` in Lua.
This commit is contained in:
Joseph T. Lyons 2024-03-13 00:32:45 -04:00 committed by GitHub
parent 646f69583a
commit 47afc70979
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = "--[ ... ]--"