-
Notifications
You must be signed in to change notification settings - Fork 20
/
Wiki.tmLanguage
79 lines (79 loc) · 2.2 KB
/
Wiki.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
<?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">
<dict>
<key>fileTypes</key>
<array>
<string>wiki</string>
<string>sublime-wiki</string>
<string>swiki</string>
</array>
<key>name</key>
<string>Wiki</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>^\s*(\w+.+:\s*$\n?)</string>
<key>name</key>
<string>keyword.control.header.Wiki</string>
</dict>
<dict>
<key>comment</key>
<string>Match WikiWords and make them into links.</string>
<key>match</key>
<string>([A-Z][a-z]+){2,}</string>
<key>name</key>
<string>string.markup.underline.link.internal.Wiki</string>
</dict>
<dict>
<key>comment</key>
<string>Simplest possible web address matcher. If you think this is basic, you should see the one in the Markdown syntax file.</string>
<key>match</key>
<string>((?:https?|ftp)://\S+)</string>
<key>name</key>
<string>markup.underline.link.external.Wiki</string>
</dict>
<dict>
<key>begin</key>
<string>"</string>
<key>comment</key>
<string>I know I don't need this, but I like strings to be called out.</string>
<key>end</key>
<string>"</string>
<key>name</key>
<string>string.quoted.double.Wiki</string>
</dict>
<dict>
<key>begin</key>
<string>`</string>
<key>comment</key>
<string>May as well have code strings called out as well.</string>
<key>end</key>
<string>`</string>
<key>name</key>
<string>string.quoted.code.Wiki</string>
</dict>
<dict>
<key>comment</key>
<string>Markdown-style bold</string>
<key>match</key>
<string>(\*\*|__)(.*?)(\*\*|__)</string>
<key>name</key>
<string>markup.bold.Wiki</string>
</dict>
<dict>
<key>comment</key>
<string>Markdown-style italics</string>
<key>match</key>
<string>\b(\*|_)(\*\*|[^\*_])+?(\*|_)\b</string>
<key>name</key>
<string>markup.italic.Wiki</string>
</dict>
</array>
<key>scopeName</key>
<string>text.Wiki</string>
<key>uuid</key>
<string>14883dd8-b120-4a1e-a4c5-67c5e7815344</string>
</dict>
</plist>