-- mod-version:1 -- lite-xl 1.16 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 = {} }