summaryrefslogtreecommitdiffstats
path: root/misc/syntax/m4.syntax
blob: 60b94ccccc905eb5a2d4434cf80a00d53e2a3f1a (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#
# M4 Macroprocessor/Autoconf syntax highlighting
# for MC Editor/CoolEdit
#
# Author: Vlad Romanenko <VladRomanenko@ukr.net>
#
# 2002-09-19  Vlad Romanenko <VladRomanenko@ukr.net>
#    * Initial public release.
#

context default

    #=========================
    # Built-in macros with mandatory parameters
    keyword whole builtin yellow
    keyword whole decr yellow
    keyword whole define yellow
    keyword whole defn yellow
    keyword whole esyscmd yellow
    keyword whole eval yellow
    keyword whole format yellow
    keyword whole ifdef yellow
    keyword whole ifelse yellow
    keyword whole include yellow
    keyword whole incr yellow
    keyword whole index yellow
    keyword whole len yellow
    keyword whole maketemp yellow
    keyword whole patsubst yellow
    keyword whole popdef yellow
    keyword whole pushdef yellow
    keyword whole regexp yellow
    keyword whole sinclude yellow
    keyword whole substr yellow
    keyword whole syscmd yellow
    keyword whole translit yellow
    keyword whole undefine yellow

    #=========================
    # Built-in macros with optional parameters
    keyword whole changecom yellow
    keyword whole changequote yellow
    keyword whole debugfile yellow
    keyword whole debugmode yellow
    keyword whole divert yellow
    keyword whole divnum yellow
    keyword whole dumpdef yellow
    keyword whole errprint yellow
    keyword whole indir yellow
    keyword whole m4exit yellow
    keyword whole m4wrap yellow
    keyword whole shift yellow
    keyword whole sysval yellow
    keyword whole traceoff yellow
    keyword whole traceon yellow
    keyword whole undivert yellow

    #=========================
    # Autoconf and Automake macros
    keyword whole AC_\[ABCDEFGHIJKLMNOPQRSTUVWXYZ_\] cyan
    keyword whole AS_\[ABCDEFGHIJKLMNOPQRSTUVWXYZ_\] cyan
    keyword whole AM_\[ABCDEFGHIJKLMNOPQRSTUVWXYZ_\] cyan

    #=========================
    # Variables
    keyword whole __file__ brightred
    keyword whole __gnu__ brightred
    keyword whole __line__ brightred
    keyword whole __unix__ brightred
    keyword wholeright $\{0123456789\}\[0123456789\] brightred
    keyword wholeright $\{@\*#\} brightred

    #=========================
    # Special symbols
    keyword ` brightcyan
    keyword ' brightcyan
    keyword [ brightcyan
    keyword ] brightcyan
    keyword , brightcyan
    keyword ( brightcyan
    keyword ) brightcyan


#=============================
# Comments

context # \n brown
    spellcheck
    keyword whole BUG brightred
    keyword whole FixMe brightred
    keyword whole FIXME brightred
    keyword whole Note brightred
    keyword whole NOTE brightred
    keyword whole ToDo brightred
    keyword whole TODO brightred
    keyword !!\[!\] brightred
    keyword ??\[?\] brightred


context dnl \n brown
    spellcheck
    keyword whole BUG brightred
    keyword whole FixMe brightred
    keyword whole FIXME brightred
    keyword whole Note brightred
    keyword whole NOTE brightred
    keyword whole ToDo brightred
    keyword whole TODO brightred
    keyword !!\[!\] brightred
    keyword ??\[?\] brightred