aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_bib.lua
diff options
context:
space:
mode:
authorajalexei <23712361+ajalexei@users.noreply.github.com>2021-06-15 23:07:59 +0900
committerGitHub <noreply@github.com>2021-06-15 23:07:59 +0900
commit3d3c48f3215c1d663abafefd78a0ca595565df0e (patch)
tree58e59bee047b9c6eeabd99fe7a17c59e2d2d768a /plugins/language_bib.lua
parent59bd4e61b9875df5fe155d5cc74f4c89c870db56 (diff)
downloadlite-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.lua22
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",
+ }
+}