From e05dceb2f1a3592225e095e6ad14af7396792a01 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 1 Jun 2020 22:19:25 +0100 Subject: Create language_make.lua --- plugins/language_make.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 plugins/language_make.lua (limited to 'plugins') 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 = { + }, +} -- cgit v1.2.3