bomberpac/vendor/lite-plugins/plugins/language_tex.lua

17 lines
515 B
Lua
Raw Permalink Normal View History

2021-02-07 21:56:19 +00:00
local syntax = require "core.syntax"
syntax.add {
files = { "%.tex$" },
comment = "%%",
patterns = {
{ pattern = {"%%", "\n"}, type = "comment" },
{ pattern = "&", type = "operator" },
{ pattern = "\\\\", type = "operator" },
{ pattern = {"%$", "%$"}, type = "operator" },
{ pattern = {"\\%[", "\\]"}, type = "operator" },
{ pattern = {"{", "}"}, type = "keyword" },
{ pattern = "\\%w*", type = "keyword2" },
},
symbols = {}
}