2021-08-17 15:46:21 +02:00
|
|
|
-- mod-version:2 -- lite-xl 2.0
|
2020-03-07 16:53:54 +01:00
|
|
|
local syntax = require "core.syntax"
|
|
|
|
|
|
|
|
syntax.add {
|
|
|
|
files = { "%.md$", "%.markdown$" },
|
|
|
|
patterns = {
|
|
|
|
{ pattern = "\\.", type = "normal" },
|
|
|
|
{ pattern = { "<!%-%-", "%-%->" }, type = "comment" },
|
|
|
|
{ pattern = { "```", "```" }, type = "string" },
|
2020-05-11 21:31:35 +02:00
|
|
|
{ pattern = { "``", "``", "\\" }, type = "string" },
|
2020-03-07 16:53:54 +01:00
|
|
|
{ pattern = { "`", "`", "\\" }, type = "string" },
|
|
|
|
{ pattern = { "~~", "~~", "\\" }, type = "keyword2" },
|
|
|
|
{ pattern = "%-%-%-+", type = "comment" },
|
|
|
|
{ pattern = "%*%s+", type = "operator" },
|
|
|
|
{ pattern = { "%*", "[%*\n]", "\\" }, type = "operator" },
|
|
|
|
{ pattern = { "%_", "[%_\n]", "\\" }, type = "keyword2" },
|
|
|
|
{ pattern = "#.-\n", type = "keyword" },
|
2020-04-27 19:44:46 +02:00
|
|
|
{ pattern = "!?%[.-%]%(.-%)", type = "function" },
|
2020-03-07 16:53:54 +01:00
|
|
|
{ pattern = "https?://%S+", type = "function" },
|
|
|
|
},
|
|
|
|
symbols = { },
|
|
|
|
}
|