diff options
author | Pedro Alves <pta2002@users.noreply.github.com> | 2020-06-01 22:19:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-01 22:19:25 +0100 |
commit | e05dceb2f1a3592225e095e6ad14af7396792a01 (patch) | |
tree | aecf3ae9408a07bf4ce0eef9867d028c75bee3e8 /plugins | |
parent | f91b56acff49c6d8afbb3a4dabd4d86f4d240d68 (diff) | |
download | lite-xl-plugins-e05dceb2f1a3592225e095e6ad14af7396792a01.tar.gz lite-xl-plugins-e05dceb2f1a3592225e095e6ad14af7396792a01.zip |
Create language_make.lua
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/language_make.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/language_make.lua b/plugins/language_make.lua new file mode 100644 index 0000000..f586a05 --- /dev/null +++ b/plugins/language_make.lua @@ -0,0 +1,17 @@ +local syntax = require "core.syntax" + +syntax.add { + files = { "Makefile", "makefile", "%.mk$" }, + comment = "#", + patterns = { + { pattern = "#.*\n", type = "comment" }, + { pattern = [[\.]], type = "normal" }, + { pattern = "$[@^<%%?+|*]", type = "keyword2" }, + { pattern = "$%(.-%)", type = "variable" }, + { pattern = "%f[%w_][%d%.]+%f[^%w_]", type = "number" }, + { pattern = "%..*:", type = "keyword2" }, + { pattern = ".*:", type = "function" }, + }, + symbols = { + }, +} |