summaryrefslogtreecommitdiffstats
path: root/misc/syntax/filehighlight.syntax
blob: 6e48ca6d7c8b14606c3bb378ca3f46df4e955396 (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
# Syntax highlighting rules for file highlighting rules

# Use \[\] at the end of keywords to suppress their special meaning

context default
    keyword whole black black blue
    keyword whole red red
    keyword whole green green
    keyword whole brown brown
    keyword whole blue blue black
    keyword whole magenta magenta
    keyword whole cyan cyan
    keyword whole lightgray lightgray
    keyword whole gray gray black
    keyword whole brightred brightred
    keyword whole brightgreen brightgreen
    keyword whole yellow yellow
    keyword whole brightblue brightblue black
    keyword whole brightmagenta brightmagenta
    keyword whole brightcyan brightcyan
    keyword whole white white

    keyword = brightcyan
    keyword ; brightmagenta
    keyword whole extensions yellow
    keyword whole extensions_case yellow
    keyword whole type yellow
    keyword DEVICE brightred
    keyword DIR brightred
    keyword FILE_EXE brightred
    keyword SPECIAL brightred
    keyword STALE_LINK brightred
    keyword SYMLINK brightred
    keyword HARDLINK brightred

context linestart # \n brown

context linestart [ ] white

context regexp= \n lightgray
    keyword = brightcyan
    keyword whole regexp yellow

# regexp patterns
    keyword \\\/ brightcyan
    keyword \\\\ brightcyan
    keyword \\B brightcyan
    keyword \\b brightcyan
    keyword \\D brightcyan
    keyword \\d brightcyan
    keyword \\S brightcyan
    keyword \\s brightcyan
    keyword \\W brightcyan
    keyword \\w brightcyan
    keyword \\A brightcyan
    keyword \\Z brightcyan

    keyword \\( brightcyan
    keyword \\) brightcyan
    keyword \\[ brightcyan
    keyword \\] brightcyan
    keyword \\{ brightcyan
    keyword \\} brightcyan
    keyword \\$ brightcyan
    keyword \\\+ brightcyan
    keyword \\. brightcyan
    keyword \\? brightcyan
    keyword \\\* brightcyan
    keyword \\^ brightcyan
    keyword \\| brightcyan

    keyword ( brightmagenta
    keyword ) brightmagenta
    keyword [ brightmagenta
    keyword ] brightmagenta
    keyword { brightmagenta
    keyword } brightmagenta

    keyword ?! yellow
    keyword ?# yellow
    keyword ?: yellow
    keyword ?= yellow
    keyword ?\{-imx:\}+ yellow

    keyword $ yellow
    keyword \+ yellow
    keyword . yellow
    keyword ? yellow
    keyword \* yellow
    keyword ^ yellow
    keyword | yellow