lua: Add auto-close for single quote strings and highlight escape sequences (#18199)

狐狸 created

- Add auto close to single quote string
- Add syntax highlights to escape sequence

Change summary

extensions/lua/languages/lua/config.toml    | 2 +-
extensions/lua/languages/lua/highlights.scm | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)

Detailed changes

extensions/lua/languages/lua/config.toml 🔗

@@ -8,6 +8,6 @@ brackets = [
     { 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"] },
+    { start = "'", end = "'", close = true, newline = false, not_in = ["string"] },
 ]
 collapsed_placeholder = "--[ ... ]--"