diff options
Diffstat (limited to 'plugins')
-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 = {} +} + |