aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorjperon <cataclop@hotmail.com>2023-04-20 20:47:21 +0200
committerGitHub <noreply@github.com>2023-04-20 20:47:21 +0200
commit74cd94e81956badb14d3d5189a03a1acc6b6d5ca (patch)
tree03805e5aaf4312e717223fd0cc1eee69a8ba250d /plugins
parenta1eac522b70ee65569586ee14a1ecaad6aeed0e2 (diff)
downloadlite-xl-plugins-74cd94e81956badb14d3d5189a03a1acc6b6d5ca.tar.gz
lite-xl-plugins-74cd94e81956badb14d3d5189a03a1acc6b6d5ca.zip
Add language_lilypond (#234)
* language_lilypond * Update language_lilypond.lua Co-authored-by: Guldoman <giulio.lettieri@gmail.com> * Update language_lilypond.lua Co-authored-by: Guldoman <giulio.lettieri@gmail.com> * language_lilypond: update manifest.json * Update plugins/language_lilypond.lua Co-authored-by: Guldoman <giulio.lettieri@gmail.com> --------- Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/language_lilypond.lua22
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 = {}
+}
+