aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/language_gmi.lua21
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 = { },
+}