diff options
author | Dheisom Gomes <dheisomgomes0@gmail.com> | 2022-02-08 17:16:33 -0300 |
---|---|---|
committer | Dheisom Gomes <dheisomgomes0@gmail.com> | 2022-02-08 17:16:33 -0300 |
commit | 2b8251ac373fb02030a835c2225f4f7b2c7c2c15 (patch) | |
tree | 0903408dde67ade926f8f85db0b6abb8e1ad7293 /plugins/language_sh.lua | |
parent | d9198d9f707aa5fd4bec2fb08058651e69d6b3b3 (diff) | |
download | lite-xl-plugins-2b8251ac373fb02030a835c2225f4f7b2c7c2c15.tar.gz lite-xl-plugins-2b8251ac373fb02030a835c2225f4f7b2c7c2c15.zip |
Improvements on syntax of sh(using bash keywords)
Diffstat (limited to 'plugins/language_sh.lua')
-rw-r--r-- | plugins/language_sh.lua | 72 |
1 files changed, 52 insertions, 20 deletions
diff --git a/plugins/language_sh.lua b/plugins/language_sh.lua index f3e604f..ce92f19 100644 --- a/plugins/language_sh.lua +++ b/plugins/language_sh.lua @@ -22,25 +22,57 @@ syntax.add { { pattern = "[%a_][%w_]*", type = "symbol" }, }, symbols = { - ["case"] = "keyword", - ["do"] = "keyword", - ["done"] = "keyword", - ["elif"] = "keyword", - ["else"] = "keyword", - ["esac"] = "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", - }, + ["case"] = "keyword", + ["in"] = "keyword", + ["esac"] = "keyword", + ["if"] = "keyword", + ["then"] = "keyword", + ["elif"] = "keyword", + ["else"] = "keyword", + ["fi"] = "keyword", + ["while"] = "keyword", + ["do"] = "keyword", + ["done"] = "keyword", + ["for"] = "keyword", + ["break"] = "keyword", + ["continue"] = "keyword", + ["function"] = "keyword", + ["local"] = "keyword", + ["echo"] = "keyword", + ["return"] = "keyword", + ["exit"] = "keyword", + ["alias"] = "keyword", + ["test"] = "keyword", + ["cd"] = "keyword", + ["declare"] = "keyword", + ["enable"] = "keyword", + ["eval"] = "keyword", + ["exec"] = "keyword", + ["export"] = "keyword", + ["getopts"] = "keyword", + ["hash"] = "keyword", + ["history"] = "keyword", + ["help"] = "keyword", + ["jobs"] = "keyword", + ["kill"] = "keyword", + ["let"] = "keyword", + ["mapfile"] = "keyword", + ["printf"] = "keyword", + ["read"] = "keyword", + ["readarray"] = "keyword", + ["pwd"] = "keyword", + ["select"] = "keyword", + ["set"] = "keyword", + ["shift"] = "keyword", + ["source"] = "keyword", + ["time"] = "keyword", + ["type"] = "keyword", + ["until"] = "keyword", + ["unalias"] = "keyword", + ["unset"] = "keyword", + ["true"] = "literal", + ["false"] = "literal", + [":"] = "literal" + } } |