-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCabal.tmLanguage
107 lines (107 loc) · 3.21 KB
/
Cabal.tmLanguage
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
<!-- GitHub's Linguist syntax modified(https://github.com/hronro/sublime-linguist-syntax/blob/master/syntaxes/Cabal%20Config.tmLanguage) -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Cabal</string>
<key>scopeName</key>
<string>source.cabal</string>
<key>patterns</key>
<array>
<dict>
<key>name</key>
<string>version</string>
<key>match</key>
<string>(version)\W*:\W*([\d.]+)</string>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>constant.numeric</string>
</dict>
</dict>
</dict>
<dict>
<key>name</key>
<string>cabal-keyword</string>
<key>match</key>
<string>(\S+):[^/]</string>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other</string>
</dict>
</dict>
</dict>
<dict>
<key>name</key>
<string>keyword.other</string>
<key>match</key>
<string>&&</string>
</dict>
<dict>
<key>name</key>
<string>cabal-keyword</string>
<key>match</key>
<string>([><=]+)\s*([\d.]+)</string>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>constant.numeric</string>
</dict>
</dict>
</dict>
<dict>
<key>name</key>
<string>module-type</string>
<key>match</key>
<string>(benchmark|common|executable|flag|source-repository|test-suite)\s+(\S+)</string>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>entity.name.function</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>variable.function</string>
</dict>
</dict>
</dict>
<dict>
<key>name</key>
<string>entity.name.function</string>
<key>match</key>
<string>library</string>
</dict>
<dict>
<key>name</key>
<string>comment</string>
<key>match</key>
<string>--.*\n</string>
</dict>
</array>
<key>fileTypes</key>
<array>
<string>cabal</string>
</array>
</dict>
</plist>