diff options
author | rxi <rxi@users.noreply.github.com> | 2020-05-26 22:17:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 22:17:53 +0100 |
commit | 96cbb139ee92608d56592e41a1a7b97132869664 (patch) | |
tree | f504a178574e147b7b665e55d2d1fd91c0348c8d /plugins | |
parent | b80e49cb2c606f434b77ef2a0cd1f0a85db42f52 (diff) | |
parent | 7909cc8df540cd9283aee019eb0463d16a62ea76 (diff) | |
download | lite-xl-plugins-96cbb139ee92608d56592e41a1a7b97132869664.tar.gz lite-xl-plugins-96cbb139ee92608d56592e41a1a7b97132869664.zip |
Merge pull request #47 from 636f6d6d656e740a/master
Added LaTeX syntax file
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 = {} +} |