aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorPedro Alves <pta2002@users.noreply.github.com>2020-06-01 22:19:25 +0100
committerGitHub <noreply@github.com>2020-06-01 22:19:25 +0100
commite05dceb2f1a3592225e095e6ad14af7396792a01 (patch)
treeaecf3ae9408a07bf4ce0eef9867d028c75bee3e8 /plugins
parentf91b56acff49c6d8afbb3a4dabd4d86f4d240d68 (diff)
downloadlite-xl-plugins-e05dceb2f1a3592225e095e6ad14af7396792a01.tar.gz
lite-xl-plugins-e05dceb2f1a3592225e095e6ad14af7396792a01.zip
Create language_make.lua
Diffstat (limited to 'plugins')
-rw-r--r--plugins/language_make.lua17
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 = {
+ },
+}