1name = "Shell Script"
2code_fence_block_name = "bash"
3grammar = "bash"
4path_suffixes = ["sh", "bash", "bashrc", "bash_profile", "bash_aliases", "bash_logout", "bats", "profile", "zsh", "zshrc", "zshenv", "zsh_profile", "zsh_aliases", "zsh_histfile", "zlogin", "zprofile", ".env", "PKGBUILD", "APKBUILD"]
5line_comments = ["# "]
6first_line_pattern = '^#!.*\b(?:ash|bash|bats|dash|sh|zsh)\b'
7brackets = [
8 { start = "[", end = "]", close = true, newline = false },
9 { start = "(", end = ")", close = true, newline = true },
10 { start = "{", end = "}", close = true, newline = true },
11 { start = "\"", end = "\"", close = true, newline = false, not_in = ["comment", "string"] },
12 { start = "'", end = "'", close = true, newline = false, not_in = ["string", "comment"] },
13]
14
15### WARN: the following is not working when you insert an `elif` just before an else
16### example: (^ is cursor after hitting enter)
17### ```
18### if true; then
19### foo
20### elif
21### ^
22### else
23### bar
24### fi
25### ```
26increase_indent_pattern = "(\\s*|;)(do|then|in|else|elif)\\b.*$"
27decrease_indent_pattern = "(\\s*|;)\\b(fi|done|esac|else|elif)\\b.*$"
28# make sure to test each line mode & block mode