aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/language_sh.lua35
1 files changed, 20 insertions, 15 deletions
diff --git a/plugins/language_sh.lua b/plugins/language_sh.lua
index 1578658..2e5ee73 100644
--- a/plugins/language_sh.lua
+++ b/plugins/language_sh.lua
@@ -10,27 +10,32 @@ syntax.add {
{ pattern = { "'", "'", '\\' }, type = "string" },
{ pattern = { '`', '`', '\\' }, type = "string" },
{ pattern = "%f[%w_][%d%.]+%f[^%w_]", type = "number" },
- { pattern = "[!<>|%[%]=*]", type = "operator" },
+ { pattern = "[!<>|&%[%]=*]", type = "operator" },
{ pattern = "%f[%S]%-[%w%-_]+", type = "function" },
{ pattern = "${.*}", type = "keyword2" },
{ pattern = "$[%a_@*][%w_]*", type = "keyword2" },
{ pattern = "[%a_][%w_]*", type = "symbol" },
},
symbols = {
- ["if"] = "keyword",
- ["then"] = "keyword",
- ["elif"] = "keyword",
- ["else"] = "keyword",
- ["fi"] = "keyword",
- ["for"] = "keyword",
- ["while"] = "keyword",
- ["until"] = "keyword",
- ["in"] = "keyword",
- ["do"] = "keyword",
- ["done"] = "keyword",
- ["echo"] = "keyword",
- ["true"] = "literal",
- ["false"] = "literal",
+ ["case"] = "keyword",
+ ["do"] = "keyword",
+ ["done"] = "keyword",
+ ["elif"] = "keyword",
+ ["else"] = "keyword",
+ ["esca"] = "keyword",
+ ["fi"] = "keyword",
+ ["for"] = "keyword",
+ ["function"] = "keyword",
+ ["if"] = "keyword",
+ ["in"] = "keyword",
+ ["select"] = "keyword",
+ ["then"] = "keyword",
+ ["time"] = "keyword",
+ ["until"] = "keyword",
+ ["while"] = "keyword",
+ ["echo"] = "keyword",
+ ["true"] = "literal",
+ ["false"] = "literal",
},
}