mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 20:01:33 +00:00
lua: Add auto-close for single quote strings and highlight escape sequences (#18199)
- Add auto close to single quote string - Add syntax highlights to escape sequence
This commit is contained in:
parent
7051bc00c2
commit
1ff10b71c8
2 changed files with 2 additions and 1 deletions
|
@ -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 = "--[ ... ]--"
|
||||
|
|
|
@ -196,3 +196,4 @@
|
|||
(number) @number
|
||||
|
||||
(string) @string
|
||||
(escape_sequence) @string.escape
|
||||
|
|
Loading…
Reference in a new issue