aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_gabc.lua
diff options
context:
space:
mode:
authorjperon <cataclop@hotmail.com>2023-04-23 19:25:28 +0200
committerGitHub <noreply@github.com>2023-04-23 19:25:28 +0200
commita5f44693599567dc0a94e72f105846016861d1da (patch)
tree69521100b3c1fc0e2d604c958970b743342ad1ad /plugins/language_gabc.lua
parenta78c7ce8d6b076c84297a66955bebcd4ff5fb650 (diff)
downloadlite-xl-plugins-a5f44693599567dc0a94e72f105846016861d1da.tar.gz
lite-xl-plugins-a5f44693599567dc0a94e72f105846016861d1da.zip
Add language_gabc (#235)
Diffstat (limited to 'plugins/language_gabc.lua')
-rw-r--r--plugins/language_gabc.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/language_gabc.lua b/plugins/language_gabc.lua
new file mode 100644
index 0000000..c07307b
--- /dev/null
+++ b/plugins/language_gabc.lua
@@ -0,0 +1,19 @@
+-- mod-version:3
+local syntax = require "core.syntax"
+
+syntax.add {
+ name = "GABC",
+ files = { "%.gabc$" },
+ comment = "%%",
+ patterns = {
+ { pattern = "%%.*", type = "comment" },
+ { pattern = "^%w+:", type = "keyword2" },
+ { pattern = "[%*{}]", type = "operator" },
+ { pattern = "<[^>]*>", type = "function" },
+ { pattern = "-?%.?%d+", type = "number" },
+ { pattern = { "|", "%)" }, type = "keyword2" },
+ { pattern = "%([^%)|]*%)?", type = "keyword" },
+ },
+ symbols = {}
+}
+