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 | |
parent | a78c7ce8d6b076c84297a66955bebcd4ff5fb650 (diff) | |
download | lite-xl-plugins-a5f44693599567dc0a94e72f105846016861d1da.tar.gz lite-xl-plugins-a5f44693599567dc0a94e72f105846016861d1da.zip |
Add language_gabc (#235)
-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 = {} +} + |