aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_gmi.lua
diff options
context:
space:
mode:
authorAsh-Coder-or-Not <newestideaz@gmail.com>2022-01-17 02:10:02 +0530
committerAsh-Coder-or-Not <newestideaz@gmail.com>2022-01-17 02:10:02 +0530
commit3c0545b9b78b1853a895cce4b8be25bbe12a0751 (patch)
tree2a3d6177b149e13b0c63406ceabf72c116fefcf4 /plugins/language_gmi.lua
parente5ce2c06c3af2470aaed18981129503f1ad4d94c (diff)
downloadlite-xl-plugins-3c0545b9b78b1853a895cce4b8be25bbe12a0751.tar.gz
lite-xl-plugins-3c0545b9b78b1853a895cce4b8be25bbe12a0751.zip
small fixes
Diffstat (limited to 'plugins/language_gmi.lua')
-rw-r--r--plugins/language_gmi.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/language_gmi.lua b/plugins/language_gmi.lua
index f478126..0804267 100644
--- a/plugins/language_gmi.lua
+++ b/plugins/language_gmi.lua
@@ -4,11 +4,12 @@ local syntax = require "core.syntax"
syntax.add {
+ name = "Gemtext",
files = { "%.gmi$" },
patterns = {
{ pattern = { "```", "```" }, type = "string" },
- { pattern = "#.-\n", type = "keyword" },
- { pattern = "%*.*\n", type = "keyword2" },
+ { pattern = "#.-", type = "keyword" },
+ { pattern = "%*.*", type = "keyword2" },
{ pattern = "=>", type = "function" },
{ pattern = "!?%[.-%]%(.-%)", type = "function" },
{ pattern = "https?://%S+", type = "literal" },
@@ -18,4 +19,4 @@ syntax.add {
{ pattern = ".*=>", type = "normal" }
},
symbols = { },
-}
+} \ No newline at end of file