From 4523d8160a958f984823b91a572b8aec4ae33d88 Mon Sep 17 00:00:00 2001 From: 636f6d6d656e740a <39064859+636f6d6d656e740a@users.noreply.github.com> Date: Tue, 26 May 2020 22:00:06 +0100 Subject: Create language_tex.lua --- plugins/language_tex.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 plugins/language_tex.lua diff --git a/plugins/language_tex.lua b/plugins/language_tex.lua new file mode 100644 index 0000000..eced489 --- /dev/null +++ b/plugins/language_tex.lua @@ -0,0 +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 = {} +} -- cgit v1.2.3