Moved .c, .lua and .md language syntaxes from core.syntax to plugins

This commit is contained in:
rxi
2020-03-07 15:53:54 +00:00
parent 42f7f81188
commit 764b43494e
4 changed files with 125 additions and 123 deletions
+20
View File
@@ -0,0 +1,20 @@
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 = "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 = { },
}