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 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 From 6cab373c7c4b142eb527bcc59385c88e31bfa999 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 1 Jun 2020 22:20:50 +0100 Subject: Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4435d82..9c8a18d 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ Plugin | Description [`language_hlsl`](plugins/language_hlsl.lua?raw=1) | Syntax for the [HLSL](https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl) programming language [`language_hs`](plugins/language_hs.lua?raw=1) | Syntax for the [Haskell](https://www.haskell.org/) programming language [`language_jiyu`](plugins/language_jiyu.lua?raw=1) | Syntax for the [jiyu](https://github.com/machinamentum/jiyu) programming language +[`language_make`](plugins/language_make.lua?raw=1) | Syntax for the Make build system language [`language_odin`](plugins/language_odin.lua?raw=1) | Syntax for the [Odin](https://github.com/odin-lang/Odin) programming language [`language_php`](plugins/language_php.lua?raw=1) | Syntax for the [PHP](https://php.net) programming language [`language_psql`](plugins/language_psql.lua?raw=1) | Syntax for the postgresql database access language -- cgit v1.2.3