Merge branch '2888_cleanup'
[midnight-commander.git] / misc / syntax / makefile.syntax
blob04d7872946e25e91fff84c966c60fcfe14f1c867
1 context default
2     keyword $$ brightcyan
3     keyword $(*) yellow
4     keyword ${*} brightgreen
5 # GNU Makefiles
6     keyword whole linestart define magenta
7     keyword whole linestart endef magenta
8     keyword whole linestart include magenta
9     keyword whole linestart ifdef magenta
10     keyword whole linestart ifndef magenta
11     keyword whole linestart endif magenta
12     keyword whole linestart if magenta
13     keyword whole linestart ifeq magenta
14     keyword whole linestart ifneq magenta
15     keyword whole linestart else magenta
16 # BSD Makefiles
17     keyword whole linestart .\[\s\t\]elif magenta
18     keyword whole linestart .\[\s\t\]else magenta
19     keyword whole linestart .\[\s\t\]endfor magenta
20     keyword whole linestart .\[\s\t\]endif magenta
21     keyword whole linestart .\[\s\t\]for magenta
22     keyword whole linestart .\[\s\t\]if magenta
23     keyword whole linestart .\[\s\t\]include magenta
24     keyword whole linestart .\[\s\t\]undef magenta
26     keyword linestart \t lightgray red
27     keyword whole .PHONY white
28     keyword whole .SUFFIXES white
29     keyword whole .DEFAULT white
30     keyword whole .PRECIOUS white
31     keyword whole .INTERMEDIATE white
32     keyword whole .SECONDARY white
33     keyword whole .DELETE_ON_ERROR white
34     keyword whole .IGNORE white
35     keyword whole .LOW_RESOLUTION_TIME white
36     keyword whole .SILENT white
37     keyword whole .EXPORT_ALL_VARIABLES white
38     keyword whole .NOTPARALLEL white
39     keyword whole .NOEXPORT white
40     keyword = white
41     keyword : yellow
42     keyword \\\n yellow
43 # this handles strange cases like @something@@somethingelse@ properly
44     keyword whole @+@ brightmagenta black
45     keyword @+@ brightmagenta black
47 # comment
48 context linestart # \n brown
49     spellcheck
50     keyword whole @+@ brightmagenta black
51     keyword @+@ brightmagenta black
53 # right part of an assignment
54 context exclusive = \n brightcyan
55     keyword \\\n yellow
56     keyword $$ brightcyan
57     keyword $(*) yellow
58     keyword ${*} brightgreen
59     keyword linestart \t lightgray red
60     keyword whole @+@ brightmagenta black
61     keyword @+@ brightmagenta black
63 # shell code
64 context exclusive linestart \t \n
65     keyword \\\n yellow
66     keyword $$ brightcyan
67     keyword $(*) yellow
68     keyword ${*} brightgreen
69     keyword linestart \t lightgray red
70     keyword whole @+@ brightmagenta black
71     keyword @+@ brightmagenta black