diff options
author | jperon <cataclop@hotmail.com> | 2023-04-23 19:25:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-23 19:25:28 +0200 |
commit | a5f44693599567dc0a94e72f105846016861d1da (patch) | |
tree | 69521100b3c1fc0e2d604c958970b743342ad1ad /plugins/language_gabc.lua | |
parent | a78c7ce8d6b076c84297a66955bebcd4ff5fb650 (diff) | |
download | lite-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.lua | 19 |
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 = {} +} + |