Jeremy Penner
3d52b70bbc
subrepo: subdir: "vendor/lite" merged: "2783adc" upstream: origin: "https://github.com/jeremypenner/lite.git" branch: "master" commit: "2783adc" git-subrepo: version: "0.4.2" origin: "https://github.com/ingydotnet/git-subrepo" commit: "65fde50"
22 lines
946 B
Lua
22 lines
946 B
Lua
local syntax = require "core.syntax"
|
|
|
|
syntax.add {
|
|
files = { "%.md$", "%.markdown$" },
|
|
patterns = {
|
|
{ pattern = "\\.", type = "normal" },
|
|
{ pattern = { "<!%-%-", "%-%->" }, type = "comment" },
|
|
{ pattern = { "```", "```" }, type = "string" },
|
|
{ pattern = { "``", "``", "\\" }, type = "string" },
|
|
{ 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" },
|
|
{ pattern = "!?%[.-%]%(.-%)", type = "function" },
|
|
{ pattern = "https?://%S+", type = "function" },
|
|
},
|
|
symbols = { },
|
|
}
|