aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_make.lua
blob: a61f609aa15dc47669895ad5b87b08138764503a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-- lite-xl 1.16
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 = {
  },
}