aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_make.lua
blob: 2d6b5030ee8a19f612aad1e102b993902f181b4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-- mod-version:3
local syntax = require "core.syntax"

syntax.add {
  name = "Makefile",
  files = { PATHSEP .. "Makefile", PATHSEP .. "makefile", "%.mk$" },
  comment = "#",
  patterns = {
    { pattern = "#.*\n",                  type = "comment"  },
    { pattern = [[\.]],                   type = "normal"   },
    { pattern = "$[@^<%%?+|*]",           type = "keyword2" },
    { pattern = "$%(.-%)",                type = "symbol"   },
    { pattern = "%f[%w_][%d%.]+%f[^%w_]", type = "number"   },
    { pattern = "%..*:",                  type = "keyword2" },
    { pattern = ".*:",                    type = "function" },
  },
  symbols = {
  },
}