]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/makefile.yaml
Merge branch 'master' of https://github.com/zyedidia/micro into build_tools
[micro.git] / runtime / syntax / makefile.yaml
1 filetype: makefile
2
3 detect:
4     filename: "([Mm]akefile|\\.ma?k)$"
5     header: "^#!.*/(env +)?[bg]?make( |$)"
6
7 rules:
8     - preproc: "\\<(ifeq|ifdef|ifneq|ifndef|else|endif)\\>"
9     - statement: "^(export|include|override)\\>"
10     - operator: "^[^:=  ]+:"
11     - operator: "([=,%]|\\+=|\\?=|:=|&&|\\|\\|)"
12     - statement: "\\$\\((abspath|addprefix|addsuffix|and|basename|call|dir)[[:space:]]"
13     - statement: "\\$\\((error|eval|filter|filter-out|findstring|firstword)[[:space:]]"
14     - statement: "\\$\\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]"
15     - statement: "\\$\\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]"
16     - statement: "\\$\\((value|warning|wildcard|word|wordlist|words)[[:space:]]"
17     - identifier: "^.+:"
18     - identifier: "[()$]"
19     - constant.string:
20         start: "\""
21         end: "\""
22         rules:
23             - constant.specialChar: "\\\\."
24     - constant.string:
25         start: "'"
26         end: "'"
27         rules:
28             - constant.specialChar: "\\\\."
29     - identifier: "\\$+(\\{[^} ]+\\}|\\([^) ]+\\))"
30     - identifier: "\\$[@^<*?%|+]|\\$\\([@^<*?%+-][DF]\\)"
31     - identifier: "\\$\\$|\\\\.?"
32     - comment:
33         start: "#"
34         end: "$"
35         rules: []
36