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