diff options
Diffstat (limited to 'plugins/language_gmi.lua')
-rw-r--r-- | plugins/language_gmi.lua | 7 |
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 |