This repository has been archived by the owner on Jul 10, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtodotxt.tmLanguage
107 lines (107 loc) · 2.56 KB
/
todotxt.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
<?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>name</key>
<string>Todo.txt</string>
<key>scopeName</key>
<string>text.todotxt</string>
<key>fileTypes</key>
<array>
<string>todo.txt</string>
</array>
<key>patterns</key>
<array>
<!-- Completed task -->
<dict>
<key>name</key>
<string>comment.completed.todotxt</string>
<key>match</key>
<string>^x .*$</string>
</dict>
<!-- Priority (high) -->
<dict>
<key>name</key>
<string>constant.other.priority.high.todotxt</string>
<key>match</key>
<string>^\(A\)(?<! )</string>
</dict>
<!-- Priority (medium) -->
<dict>
<key>name</key>
<string>constant.other.priority.medium.todotxt</string>
<key>match</key>
<string>^\(B\)(?<! )</string>
</dict>
<!-- Priority (low) -->
<dict>
<key>name</key>
<string>constant.other.priority.low.todotxt</string>
<key>match</key>
<string>^\(C\)(?<! )</string>
</dict>
<!-- Priority (other) -->
<dict>
<key>name</key>
<string>constant.other.priority.other.todotxt</string>
<key>match</key>
<string>^\([D-Z]\)(?<! )</string>
</dict>
<!-- Context (@value) -->
<dict>
<key>captures</key>
<dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.definition.context.todotxt</string>
</dict>
</dict>
<key>name</key>
<string>keyword.context.todotxt</string>
<key>match</key>
<string>(?<=^|\s)(@)\S*</string>
</dict>
<!-- Project (+value) -->
<dict>
<key>captures</key>
<dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.definition.project.todotxt</string>
</dict>
</dict>
<key>name</key>
<string>keyword.other.project.todotxt</string>
<key>match</key>
<string>(?<=^|\s)(\+)\S+</string>
</dict>
<!-- Add-on (key:value) -->
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>variable.addon.todotxt</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.separator.key-value.addon.todotxt</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>string.addon.todotxt</string>
</dict>
</dict>
<key>name</key>
<string>meta.structure.addon.todotxt</string>
<key>match</key>
<string>(?<=^|\s)(\S+)(:)(\S+)</string>
</dict>
</array>
</dict>
</plist>