-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLiterateHaskellBirdStyle.tmLanguage
64 lines (64 loc) · 1.61 KB
/
LiterateHaskellBirdStyle.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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<!-- Author @wrossmck -->
<!-- Edited 21 December 2013 to make all non-code a comment -->
<dict>
<key>fileTypes</key>
<array>
<string>lhs</string>
</array>
<key>keyEquivalent</key>
<string>^~H</string>
<key>name</key>
<string>Literate Haskell Bird Style</string>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>^></string>
<key>end</key>
<string>$</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>source.haskell</string>
</dict>
</array>
</dict>
<!-- Remove the next dictionary to turn regular "text" from being comments back into text -->
<dict>
<key>include</key>
<string>#comments</string>
</dict>
</array>
<key>repository</key>
<dict>
<key>comments</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.haskell</string>
</dict>
</dict>
<key>match</key>
<string>^((?!^>).)*$</string>
<key>name</key>
<string>comment.line.double-dash.haskell</string>
</dict>
</array>
</dict>
</dict>
<key>scopeName</key>
<string>source.haskell.bird</string>
<key>uuid</key>
<string>d32ef3c4-1b5e-4782-a1ff-34135f3a5c19</string>
</dict>
</plist>