diff options
Diffstat (limited to 'plugins/language_lilypond.lua')
-rw-r--r-- | plugins/language_lilypond.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/language_lilypond.lua b/plugins/language_lilypond.lua new file mode 100644 index 0000000..a3f84f1 --- /dev/null +++ b/plugins/language_lilypond.lua @@ -0,0 +1,22 @@ +-- mod-version:3 +local syntax = require "core.syntax" + +syntax.add { + name = "LilyPond", + files = { "%.i?ly$" }, + comment = "%%", + block_comment = { "%%{", "%%}" }, + patterns = { + { pattern = "#%(()[%a_]%S*", type = { "operator", "function" } }, + { pattern = {"%%{", "%%}"}, type = "comment" }, + { pattern = "%%.*", type = "comment" }, + { pattern = "#[%w_-]*", type = "keyword2" }, + { pattern = "\\%a%w+", type = "keyword" }, + { pattern = "\\\\", type = "operator" }, + { pattern = "[%(%){}%[%]<>=/~%-%_']", type = "operator" }, + { pattern = {'"', '"', "\\"}, type = "string" }, + { pattern = "-?%.?%d+", type = "number" }, + }, + symbols = {} +} + |