diff options
author | Rohan Vashisht <81112205+RohanVashisht1234@users.noreply.github.com> | 2024-04-08 15:00:49 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-08 11:30:49 +0200 |
commit | 7bbb5368e1778e4ea58b64d238b8d8fbb93a0cbc (patch) | |
tree | 2c169abecc489044c720a3f8629da74aed307aea /plugins/language_buzz.lua | |
parent | 5452497648776335ffc20e6081996ec1e63b9557 (diff) | |
download | lite-xl-plugins-7bbb5368e1778e4ea58b64d238b8d8fbb93a0cbc.tar.gz lite-xl-plugins-7bbb5368e1778e4ea58b64d238b8d8fbb93a0cbc.zip |
Integrate `language_{buzz,carbon,fortran,swift}` remote plugins (#417)
* Update manifest.json
* Create language_carbon.lua
* Update language_carbon.lua
* Create language_fortran.lua
* Update language_carbon.lua
* Create language_swift.lua
* Create language_buzz.lua
* Update manifest.json
* Update manifest.json
* Update manifest.json
* Update manifest.json
Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
---------
Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
Diffstat (limited to 'plugins/language_buzz.lua')
-rw-r--r-- | plugins/language_buzz.lua | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/plugins/language_buzz.lua b/plugins/language_buzz.lua new file mode 100644 index 0000000..c00bf1a --- /dev/null +++ b/plugins/language_buzz.lua @@ -0,0 +1,76 @@ +-- Author: Rohan Vashisht: https://github.com/rohanvashisht1234/ + + +-- mod-version:3 +local syntax = require "core.syntax" + +syntax.add { + name = "Buzz", -- tested ok + files = { "%.buzz$" }, -- tested ok + comment = "|", -- tested ok + patterns = { + { pattern = { '"', '"', '\\' }, type = "string" }, -- tested ok + { pattern = "|.*", type = "comment" }, -- tested ok + { pattern = "[!%-/*?:=><]", type = "operator" }, -- tested ok + { pattern = "[%a_][%w_]*%f[(]", type = "function" }, -- tested ok + { pattern = "const()%s+()[%a_][%w_]*", type = { "keyword", "normal", "literal" } }, -- tested ok + { pattern = "object()%s+()[%a_][%w_]*", type = { "keyword", "normal", "literal" } }, -- tested ok + { pattern = "var()%s+()[%a_][%w_]*", type = { "keyword", "normal", "literal" } }, -- tested ok + { pattern = "-?%d+[%d%.eE_]*", type = "number" }, -- tested ok + { pattern = "-?%.?%d+", type = "number" }, -- tested ok + { pattern = "[%a_][%w_]*", type = "normal" }, -- tested ok + }, + symbols = { + ["bool"] = "keyword", -- tested ok + ["ud"] = "keyword", -- tested ok + ["float"] = "keyword", -- tested ok + ["zdef"] = "keyword", -- tested ok + ["resolve"] = "keyword", -- tested ok + ["yield"] = "keyword", -- tested ok + ["resume"] = "keyword", -- tested ok + ["export"] = "keyword", -- tested ok + ["void"] = "keyword", -- tested ok + ["protocol"] = "keyword", -- tested ok + ["do"] = "keyword", -- tested ok + ["enum"] = "keyword", -- tested ok + ["test"] = "keyword", -- tested ok + ["extern"] = "keyword", -- tested ok + ["object"] = "keyword", -- tested ok + ["foreach"] = "keyword", -- tested ok + ["is"] = "keyword", -- tested ok + ["return"] = "keyword", -- tested ok + ["continue"] = "keyword", -- tested ok + ["for"] = "keyword", -- tested ok + ["lambda"] = "keyword", -- tested ok + ["try"] = "keyword", -- tested ok + ["fun"] = "keyword", -- tested ok + ["type"] = "keyword", -- tested ok + ["while"] = "keyword", -- tested ok + ["and"] = "keyword", -- tested ok + ["global"] = "keyword", -- tested ok + ["not"] = "keyword2", -- tested ok + ["any"] = "keyword", -- tested ok + ["as"] = "keyword", -- tested ok + ["if"] = "keyword", -- tested ok + ["or"] = "keyword", -- tested ok + ["else"] = "keyword", -- tested ok + ["match"] = "keyword", -- tested ok + ["pat"] = "keyword", -- tested ok + ["import"] = "keyword", -- tested ok + ["str"] = "keyword", -- tested ok + ["var"] = "keyword", -- tested ok + ["catch"] = "keyword", -- tested ok + ["typeof"] = "keyword", -- tested ok + ["int"] = "keyword", -- tested ok + ["const"] = "keyword", -- tested ok + ["namespace"] = "keyword", -- tested ok + ["this"] = "keyword2", -- tested ok + ["null"] = "literal", -- tested ok + ["true"] = "literal", -- tested ok + ["false"] = "literal", -- tested ok + ["in"] = "literal", -- tested ok + ["static"] = "keyword2", -- tested ok + ["std"] = "keyword2", -- tested ok + ["io"] = "keyword2", -- tested ok + } +} |