edtris/vendor/lite-plugins/plugins/language_tex.lua
2021-02-07 16:56:19 -05:00

17 lines
515 B
Lua

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 = {}
}