-
Notifications
You must be signed in to change notification settings - Fork 25
/
Go (Colorcoded).tmLanguage
76 lines (76 loc) · 1.77 KB
/
Go (Colorcoded).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
<?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>fileTypes</key>
<array>
<string>go</string>
</array>
<key>firstLineMatch</key>
<string>-\*- C\+\+ -\*-</string>
<key>foldingStartMarker</key>
<string>(?x)
/\*\*(?!\*)
|^(?![^{]*?//|[^{]*?/\*(?!.*?\*/.*?\{)).*?\{\s*($|//|/\*(?!.*?\*/.*\S))
</string>
<key>foldingStopMarker</key>
<string>(?<!\*)\*\*/|^\s*\}</string>
<key>name</key>
<string>Go (Colorcode)</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\b</string>
<key>name</key>
<string>constant.numeric.go</string>
</dict>
<dict>
<key>match</key>
<string>"(\\[rnt\\"]|[^"])*"</string>
<key>name</key>
<string>string.go</string>
</dict>
<dict>
<key>match</key>
<string>`[^']*`</string>
<key>name</key>
<string>string.go</string>
</dict>
<dict>
<key>match</key>
<string>'[^']*'</string>
<key>name</key>
<string>string.go</string>
</dict>
<dict>
<key>match</key>
<string>//.*</string>
<key>name</key>
<string>comment.go</string>
</dict>
<dict>
<key>begin</key>
<string>/\*</string>
<key>end</key>
<string>\*/</string>
<key>name</key>
<string>comment.go</string>
</dict>
<dict>
<key>match</key>
<string>\b(package|import|range|for|if|go|defer|func|var|_)\b</string>
<key>name</key>
<string>keywords.go</string>
</dict>
<dict>
<key>match</key>
<string>\b\w+\b</string>
<key>name</key>
<string>colorize.go</string>
</dict>
</array>
<key>scopeName</key>
<string>source.go</string>
</dict>
</plist>