Add autoclosing braces for Shell Scripts (#20278)

Added support for autoclosing braces `{}` and single quotes `''` in Shell Scripts
This commit is contained in:
Peter Tripp 2024-11-06 16:05:59 +00:00 committed by GitHub
parent eca3424cb5
commit 815385cc5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,5 +7,7 @@ first_line_pattern = '^#!.*\b(?:ash|bash|dash|sh|zsh)\b'
brackets = [
{ start = "[", end = "]", close = true, newline = false },
{ start = "(", end = ")", close = true, newline = false },
{ start = "{", end = "}", close = true, newline = false },
{ start = "\"", end = "\"", close = true, newline = false, not_in = ["comment", "string"] },
{ start = "'", end = "'", close = true, newline = false, not_in = ["string", "comment"] },
]