diff options
author | ThaCuber <70547062+thacuber2a03@users.noreply.github.com> | 2023-10-29 07:23:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-29 12:23:26 +0100 |
commit | d76503024e223f2cb56c29ba355d41520425f05d (patch) | |
tree | 8b66619b40f8f5ad5c118bd50c2eb83eac99e317 /plugins/language_fe.lua | |
parent | 02a59293a9b2d2f4e986d0543e6a21b65a35451a (diff) | |
download | lite-xl-plugins-d76503024e223f2cb56c29ba355d41520425f05d.tar.gz lite-xl-plugins-d76503024e223f2cb56c29ba355d41520425f05d.zip |
Add `language_c7` and update `language_fe` (#328)
* update lang_fe and add lang_c7
* actually add the files
* fixed language_fe
* add to meta_languages and bump
* space
* .*
Diffstat (limited to 'plugins/language_fe.lua')
-rw-r--r-- | plugins/language_fe.lua | 39 |
1 files changed, 28 insertions, 11 deletions
diff --git a/plugins/language_fe.lua b/plugins/language_fe.lua index aee9b85..041512f 100644 --- a/plugins/language_fe.lua +++ b/plugins/language_fe.lua @@ -6,29 +6,46 @@ syntax.add { files = "%.fe$", comment = ";", patterns = { - { pattern = ";.-\n", type = "comment" }, + { pattern = ";.*", type = "comment" }, { pattern = { '"', '"', '\\' }, type = "string" }, { pattern = "0x[%da-fA-F]+", type = "number" }, { pattern = "-?%d+[%d%.]*", type = "number" }, { pattern = "-?%.?%d+", type = "number" }, - { pattern = "'", type = "symbol" }, + { pattern = "'", type = "symbol" }, + { pattern = "=", type = "symbol" }, + { pattern = "<=?", type = "symbol" }, + { pattern = "[%+-%*/]", type = "symbol" }, { pattern = "%f[^(][^()'%s\"]+", type = "function" }, { pattern = "[^()'%s\"]+", type = "symbol" }, }, symbols = { - ["if"] = "keyword2", - ["let"] = "keyword2", - ["do"] = "keyword2", - ["fn"] = "keyword2", - ["mac"] = "keyword2", - ["'"] = "keyword2", - ["print"] = "keyword", + ["let"] = "keyword", + ["if"] = "keyword", + ["fn"] = "keyword", + ["mac"] = "keyword", ["while"] = "keyword", + ["quote"] = "keyword", + ["'"] = "keyword", + ["and"] = "keyword", + ["or"] = "keyword", + ["do"] = "keyword", + ["cons"] = "keyword", ["car"] = "keyword", ["cdr"] = "keyword", - ["not"] = "keyword", - ["setcdr"] = "keyword", ["setcar"] = "keyword", + ["setcdr"] = "keyword", + ["list"] = "keyword", + ["not"] = "keyword", + ["is"] = "keyword", + ["atom"] = "keyword", + ["print"] = "keyword", + ["<"] = "operator", + ["<="] = "operator", + ["="] = "operator", + ["+"] = "operator", + ["-"] = "operator", + ["*"] = "operator", + ["/"] = "operator", ["nil"] = "literal", ["t"] = "literal", } |