Merge branch '1605_incorrect_parsing_ftp_string'
[midnight-commander.git] / syntax / m4.syntax
blob46768d3e8283834b68fe4ebe1288f0c5cd59346a
2 # M4 Macroprocessor/Autoconf syntax highlighting
3 # for MC Editor/CoolEdit
5 # Author: Vlad Romanenko <VladRomanenko@ukr.net>
7 # 2002-09-19  Vlad Romanenko <VladRomanenko@ukr.net>
8 #       * Initial public release.
11 context default
13         #=========================
14         # Built-in macros with mandatory parameters
15         keyword whole builtin           yellow
16         keyword whole decr              yellow
17         keyword whole define            yellow
18         keyword whole defn              yellow
19         keyword whole esyscmd           yellow
20         keyword whole eval              yellow
21         keyword whole format            yellow
22         keyword whole ifdef             yellow
23         keyword whole ifelse            yellow
24         keyword whole include           yellow
25         keyword whole incr              yellow
26         keyword whole index             yellow
27         keyword whole len               yellow
28         keyword whole maketemp          yellow
29         keyword whole patsubst          yellow
30         keyword whole popdef            yellow
31         keyword whole pushdef           yellow
32         keyword whole regexp            yellow
33         keyword whole sinclude          yellow
34         keyword whole substr            yellow
35         keyword whole syscmd            yellow
36         keyword whole translit          yellow
37         keyword whole undefine          yellow
39         #=========================
40         # Built-in macros with optional parameters
41         keyword whole changecom         yellow
42         keyword whole changequote       yellow
43         keyword whole debugfile         yellow
44         keyword whole debugmode         yellow
45         keyword whole divert            yellow
46         keyword whole divnum            yellow
47         keyword whole dumpdef           yellow
48         keyword whole errprint          yellow
49         keyword whole indir             yellow
50         keyword whole m4exit            yellow
51         keyword whole m4wrap            yellow
52         keyword whole shift             yellow
53         keyword whole sysval            yellow
54         keyword whole traceoff          yellow
55         keyword whole traceon           yellow
56         keyword whole undivert          yellow
58         #=========================
59         # Autoconf and Automake macros
60         keyword whole AC_\[ABCDEFGHIJKLMNOPQRSTUVWXYZ_\] cyan
61         keyword whole AS_\[ABCDEFGHIJKLMNOPQRSTUVWXYZ_\] cyan
62         keyword whole AM_\[ABCDEFGHIJKLMNOPQRSTUVWXYZ_\] cyan
64         #=========================
65         # Variables
66         keyword whole __file__          brightred
67         keyword whole __gnu__           brightred
68         keyword whole __line__          brightred
69         keyword whole __unix__          brightred
70         keyword wholeright $\{0123456789\}\[0123456789\] brightred
71         keyword wholeright $\{@\*#\}    brightred
73         #=========================
74         # Special symbols
75         keyword `                       brightcyan
76         keyword '                       brightcyan
77         keyword [                       brightcyan
78         keyword ]                       brightcyan
79         keyword ,                       brightcyan
80         keyword (                       brightcyan
81         keyword )                       brightcyan
84 #=============================
85 # Comments
87 context # \n brown
88         spellcheck
89         keyword whole BUG               brightred
90         keyword whole FixMe             brightred
91         keyword whole FIXME             brightred
92         keyword whole Note              brightred
93         keyword whole NOTE              brightred
94         keyword whole ToDo              brightred
95         keyword whole TODO              brightred
96         keyword !!\[!\]                 brightred
97         keyword ??\[?\]                 brightred
100 context dnl \n brown
101         spellcheck
102         keyword whole BUG               brightred
103         keyword whole FixMe             brightred
104         keyword whole FIXME             brightred
105         keyword whole Note              brightred
106         keyword whole NOTE              brightred
107         keyword whole ToDo              brightred
108         keyword whole TODO              brightred
109         keyword !!\[!\]                 brightred
110         keyword ??\[?\]                 brightred