diff options
author | rxi <rxi@users.noreply.github.com> | 2020-05-10 08:37:06 +0100 |
---|---|---|
committer | rxi <rxi@users.noreply.github.com> | 2020-05-10 08:37:06 +0100 |
commit | 3a19b1791a6a143aaad789adc18a2801875e37bb (patch) | |
tree | 6c528ed3a817848a4b0f82352b8ca88a70519516 | |
parent | 3c3a68b84bcbd9f087885454453b0c901c80a86c (diff) | |
download | lite-xl-plugins-3a19b1791a6a143aaad789adc18a2801875e37bb.tar.gz lite-xl-plugins-3a19b1791a6a143aaad789adc18a2801875e37bb.zip |
Update language_sh keywords
Resolves #21
-rw-r--r-- | plugins/language_sh.lua | 35 |
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", }, } |