diff options
Diffstat (limited to 'plugins/language_gmi.lua')
-rw-r--r-- | plugins/language_gmi.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/language_gmi.lua b/plugins/language_gmi.lua new file mode 100644 index 0000000..f478126 --- /dev/null +++ b/plugins/language_gmi.lua @@ -0,0 +1,21 @@ +-- mod-version:2 -- lite-xl 2.0 +local syntax = require "core.syntax" + + + +syntax.add { + files = { "%.gmi$" }, + patterns = { + { pattern = { "```", "```" }, type = "string" }, + { pattern = "#.-\n", type = "keyword" }, + { pattern = "%*.*\n", type = "keyword2" }, + { pattern = "=>", type = "function" }, + { pattern = "!?%[.-%]%(.-%)", type = "function" }, + { pattern = "https?://%S+", type = "literal" }, + { pattern = "gemini?://%S+", type = "literal" }, + { pattern = ">.*", type = "comment" }, + { pattern = ".*[>*#]", type = "normal" }, + { pattern = ".*=>", type = "normal" } + }, + symbols = { }, +} |