mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-11 21:00:35 +00:00
Update Lua config.toml (#9260)
Release Notes: - Added autoclosing of `(` and `'` in Lua.
This commit is contained in:
parent
646f69583a
commit
47afc70979
1 changed files with 3 additions and 1 deletions
|
@ -2,10 +2,12 @@ name = "Lua"
|
||||||
grammar = "lua"
|
grammar = "lua"
|
||||||
path_suffixes = ["lua"]
|
path_suffixes = ["lua"]
|
||||||
line_comments = ["-- "]
|
line_comments = ["-- "]
|
||||||
autoclose_before = ",]}"
|
autoclose_before = ";:.,=}])>"
|
||||||
brackets = [
|
brackets = [
|
||||||
{ start = "{", end = "}", close = true, newline = true },
|
{ start = "{", end = "}", close = true, newline = true },
|
||||||
{ 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 = true, newline = false, not_in = ["string"] },
|
||||||
|
{ start = "'", end = "'", close = false, newline = false, not_in = ["string"] },
|
||||||
]
|
]
|
||||||
collapsed_placeholder = "--[ ... ]--"
|
collapsed_placeholder = "--[ ... ]--"
|
||||||
|
|
Loading…
Reference in a new issue