diff options
author | rxi <rxi@users.noreply.github.com> | 2020-05-29 12:54:17 +0100 |
---|---|---|
committer | rxi <rxi@users.noreply.github.com> | 2020-05-29 12:54:17 +0100 |
commit | a6723638699352c0f428eee3a40d30bc18b485ce (patch) | |
tree | d042078f1c5abfcc3d02f3ebc10485e68de75445 /plugins | |
parent | 7a47b97e21983913b98267484b4fd2a38cef3efa (diff) | |
parent | 96cbb139ee92608d56592e41a1a7b97132869664 (diff) | |
download | lite-xl-plugins-a6723638699352c0f428eee3a40d30bc18b485ce.tar.gz lite-xl-plugins-a6723638699352c0f428eee3a40d30bc18b485ce.zip |
Merge branch 'master' of https://github.com/rxi/lite-plugins
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/language_tex.lua | 16 |
1 files changed, 16 insertions, 0 deletions
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 = {} +} |