diff options
author | ajalexei <23712361+ajalexei@users.noreply.github.com> | 2021-06-15 23:07:59 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-15 23:07:59 +0900 |
commit | 3d3c48f3215c1d663abafefd78a0ca595565df0e (patch) | |
tree | 58e59bee047b9c6eeabd99fe7a17c59e2d2d768a /plugins/language_bib.lua | |
parent | 59bd4e61b9875df5fe155d5cc74f4c89c870db56 (diff) | |
download | lite-xl-plugins-3d3c48f3215c1d663abafefd78a0ca595565df0e.tar.gz lite-xl-plugins-3d3c48f3215c1d663abafefd78a0ca595565df0e.zip |
Uploaded files
added language_bib.lua, pdfview.lua, texcompile.lua
Diffstat (limited to 'plugins/language_bib.lua')
-rw-r--r-- | plugins/language_bib.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/language_bib.lua b/plugins/language_bib.lua new file mode 100644 index 0000000..08a5662 --- /dev/null +++ b/plugins/language_bib.lua @@ -0,0 +1,22 @@ +-- mod-version:1 -- lite-xl 1.16 +local syntax = require "core.syntax" + +syntax.add { + files = { "%.bib$" }, + comment = "%%", + patterns = { + { pattern = {"%%", "\n"}, type = "comment" }, + { pattern = "@%a+", type = "keyword" }, + { pattern = "%a+%s=", type = "keyword2" }, + }, + symbols = { + ["author"] = "keyword", + ["doi"] = "keyword", + ["issue"] = "keyword", + ["journal"] = "keyword", + ["month"] = "keyword", + ["numpages"] = "keyword", + ["pages"] = "keyword", + ["publisher"] = "keyword", + } +} |