From a5f44693599567dc0a94e72f105846016861d1da Mon Sep 17 00:00:00 2001 From: jperon Date: Sun, 23 Apr 2023 19:25:28 +0200 Subject: Add language_gabc (#235) --- plugins/language_gabc.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 plugins/language_gabc.lua (limited to 'plugins/language_gabc.lua') 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 = {} +} + -- cgit v1.2.3