diff options
-rw-r--r-- | manifest.json | 7 | ||||
-rw-r--r-- | plugins/language_gabc.lua | 19 |
2 files changed, 26 insertions, 0 deletions
diff --git a/manifest.json b/manifest.json index dc7668f..21fbb65 100644 --- a/manifest.json +++ b/manifest.json @@ -508,6 +508,13 @@ "mod_version": "3" }, { + "description": "Syntax for the [GABC](https://gregorio-project.github.io/gabc) music typesetting language", + "version": "0.1", + "path": "plugins/language_gabc.lua", + "id": "language_gabc", + "mod_version": "3" + }, + { "description": "Syntax for the [Godot Engine](https://godotengine.org/)'s GDScript scripting language", "version": "0.1", "path": "plugins/language_gdscript.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 = {} +} + |