summaryrefslogtreecommitdiffstats
path: root/misc/syntax/makefile.syntax
blob: 04d7872946e25e91fff84c966c60fcfe14f1c867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
context default
    keyword $$ brightcyan
    keyword $(*) yellow
    keyword ${*} brightgreen
# GNU Makefiles
    keyword whole linestart define magenta
    keyword whole linestart endef magenta
    keyword whole linestart include magenta
    keyword whole linestart ifdef magenta
    keyword whole linestart ifndef magenta
    keyword whole linestart endif magenta
    keyword whole linestart if magenta
    keyword whole linestart ifeq magenta
    keyword whole linestart ifneq magenta
    keyword whole linestart else magenta
# BSD Makefiles
    keyword whole linestart .\[\s\t\]elif magenta
    keyword whole linestart .\[\s\t\]else magenta
    keyword whole linestart .\[\s\t\]endfor magenta
    keyword whole linestart .\[\s\t\]endif magenta
    keyword whole linestart .\[\s\t\]for magenta
    keyword whole linestart .\[\s\t\]if magenta
    keyword whole linestart .\[\s\t\]include magenta
    keyword whole linestart .\[\s\t\]undef magenta

    keyword linestart \t lightgray red
    keyword whole .PHONY white
    keyword whole .SUFFIXES white
    keyword whole .DEFAULT white
    keyword whole .PRECIOUS white
    keyword whole .INTERMEDIATE white
    keyword whole .SECONDARY white
    keyword whole .DELETE_ON_ERROR white
    keyword whole .IGNORE white
    keyword whole .LOW_RESOLUTION_TIME white
    keyword whole .SILENT white
    keyword whole .EXPORT_ALL_VARIABLES white
    keyword whole .NOTPARALLEL white
    keyword whole .NOEXPORT white
    keyword = white
    keyword : yellow
    keyword \\\n yellow
# this handles strange cases like @something@@somethingelse@ properly
    keyword whole @+@ brightmagenta black
    keyword @+@ brightmagenta black

# comment
context linestart # \n brown
    spellcheck
    keyword whole @+@ brightmagenta black
    keyword @+@ brightmagenta black

# right part of an assignment
context exclusive = \n brightcyan
    keyword \\\n yellow
    keyword $$ brightcyan
    keyword $(*) yellow
    keyword ${*} brightgreen
    keyword linestart \t lightgray red
    keyword whole @+@ brightmagenta black
    keyword @+@ brightmagenta black

# shell code
context exclusive linestart \t \n
    keyword \\\n yellow
    keyword $$ brightcyan
    keyword $(*) yellow
    keyword ${*} brightgreen
    keyword linestart \t lightgray red
    keyword whole @+@ brightmagenta black
    keyword @+@ brightmagenta black