forked from SublimeText-Markdown/MarkdownEditing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MultiMarkdown.tmLanguage
87 lines (87 loc) · 2.29 KB
/
MultiMarkdown.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
<?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>md</string>
<string>mdown</string>
<string>markdown</string>
<string>markdn</string>
</array>
<key>firstLineMatch</key>
<string>(?i)^format:\s*complete\s*$</string>
<key>foldingStartMarker</key>
<string>(?x)
(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?>
|<!--(?!.*-->)
|\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))
)</string>
<key>foldingStopMarker</key>
<string>(?x)
(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>
|^\s*-->
|(^|\s)\}
)</string>
<key>keyEquivalent</key>
<string>^~M</string>
<key>name</key>
<string>MultiMarkdown</string>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>^([A-Za-z0-9 _\-]+)(:)\s*</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other.multimarkdown</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.separator.key-value.multimarkdown</string>
</dict>
</dict>
<key>end</key>
<string>^$|^(?=[A-Za-z0-9]+:)</string>
<key>name</key>
<string>meta.header.multimarkdown</string>
<key>patterns</key>
<array>
<dict>
<key>comment</key>
<string>The reason for not setting scopeName = "string.unquoted"
(for the parent rule) is that we do not want
newlines to be marked as string.unquoted</string>
<key>match</key>
<string>.+</string>
<key>name</key>
<string>string.unquoted.multimarkdown</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>^(?!=[A-Za-z0-9]+:)</string>
<key>end</key>
<string>^(?=not)possible$</string>
<key>name</key>
<string>meta.content.multimarkdown</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>text.html.markdown.gfm</string>
</dict>
</array>
</dict>
</array>
<key>scopeName</key>
<string>text.html.markdown.multimarkdown</string>
<key>uuid</key>
<string>6F5A7020-3E5F-11E3-AA6E-0800200C9A66</string>
</dict>
</plist>