aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 = {
+ },
+}