aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorjgmdev <jgmdev@gmail.com>2021-06-14 19:04:47 -0400
committerjgmdev <jgmdev@gmail.com>2021-06-14 19:04:47 -0400
commit57adcb345c4a14de9cf69a3f4f971455732a95ab (patch)
tree4f2a2faeb51b6fa19e10018ba840027c96b7fbd3 /plugins
parent32b8d620b8b2aa07304ed76a2855d353faaa9ca0 (diff)
downloadlite-xl-plugins-57adcb345c4a14de9cf69a3f4f971455732a95ab.tar.gz
lite-xl-plugins-57adcb345c4a14de9cf69a3f4f971455732a95ab.zip
Added language_po
Diffstat (limited to 'plugins')
-rw-r--r--plugins/language_po.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/language_po.lua b/plugins/language_po.lua
new file mode 100644
index 0000000..0f07d40
--- /dev/null
+++ b/plugins/language_po.lua
@@ -0,0 +1,20 @@
+-- mod-version:1 -- lite-xl 1.16
+local syntax = require "core.syntax"
+
+syntax.add {
+ files = { "%.po$", "%.pot$" },
+ comment = "#",
+ patterns = {
+ { pattern = { "#", "\n"}, type = "comment" },
+ { pattern = { '"', '"', '\\' }, type = "string" },
+ { pattern = "[%[%]]", type = "operator" },
+ { pattern = "%d+", type = "number" },
+ { pattern = "[%a_][%w_]*", type = "symbol" },
+ },
+ symbols = {
+ ["msgctxt"] = "keyword",
+ ["msgid"] = "keyword",
+ ["msgid_plural"] = "keyword",
+ ["msgstr"] = "keyword",
+ },
+}