diff options
author | Jefferson González <jgmdev@gmail.com> | 2022-02-09 16:23:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-09 16:23:54 -0400 |
commit | 92bbbeaab6a5ceec903d022c5e6fd864b05f5b81 (patch) | |
tree | 0903408dde67ade926f8f85db0b6abb8e1ad7293 | |
parent | d9198d9f707aa5fd4bec2fb08058651e69d6b3b3 (diff) | |
parent | 2b8251ac373fb02030a835c2225f4f7b2c7c2c15 (diff) | |
download | lite-xl-plugins-92bbbeaab6a5ceec903d022c5e6fd864b05f5b81.tar.gz lite-xl-plugins-92bbbeaab6a5ceec903d022c5e6fd864b05f5b81.zip |
Merge pull request #32 from dheisom/sh-improvements
Improvements on syntax of sh(using bash keywords)
-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" + } } |