-
Notifications
You must be signed in to change notification settings - Fork 0
/
gtdalt.syntax
143 lines (143 loc) · 3.87 KB
/
gtdalt.syntax
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
---
name: GTDalt
fileTypes:
- gtd
- gtdlog
scopeName: text.gtdalt
repository:
title:
name: constant.other.title.gtdalt
match: \S+(?:\s+\S+)*?(?=\s*(?:\[\d+\]|(?:due|at|from):|$))
date:
captures:
"1":
name: keyword.operator.due.gtdalt
"2":
name: punctuation.separator.key-value.due.gtdalt
"3":
name: string.quoted.other.timestamp.due.gtdalt
"4":
name: punctuation.definition.due.gtdalt
"5":
name: punctuation.definition.due.gtdalt
match: ((?:due|at|from)(:))((\[)\d{4}-\d{2}-\d{2}(\]))
note:
name: support.other.note.gtdalt
captures:
"1":
name: punctuation.definition.note.gtdalt
"2":
name: punctuation.definition.note.gtdalt
match: (\[)\d+(\])
link:
captures:
"1":
name: punctuation.definition.link.gtdalt
"2":
name: markup.underline.link.gtdalt
"3":
name: punctuation.definition.link.gtdalt
match: (<)([^>]*)(>)
uuid: C36472BD-A8CD-4613-A595-CEFB052E6181
foldingStartMarker: ^\s*project
patterns:
- name: meta.project.begin.gtdalt
endCaptures:
"0":
name: meta.line.project.end.gtdalt
"1":
name: keyword.control.project.end.gtdalt
begin: ^\s*(project)\s+(.*)(\n)
beginCaptures:
"0":
name: meta.line.project.begin.gtdalt
"1":
name: keyword.control.project.begin.gtdalt
"2":
name: entity.name.section.project.title.gtdalt
"3":
name: meta.project.newline.gtdalt
end: ^\s*(end)\s*
patterns:
- include: $self
- name: meta.action.only-context.gtdalt
captures:
"1":
name: storage.type.context.action.gtdalt
"2":
name: punctuation.definition.context.action.gtdalt
match: ^\s*((@)\S++\n)
- name: meta.action.gtdalt
begin: ^\s*((@)\S++\s)
beginCaptures:
"1":
name: storage.type.context.action.gtdalt
"2":
name: punctuation.definition.context.action.gtdalt
end: \n|$
patterns:
- include: "#note"
- include: "#date"
- include: "#title"
- name: meta.action.completed.gtdalt
captures:
"6":
name: punctuation.definition.date.gtdalt
"0":
name: comment.line.number-sign.action.completed.gtdalt
"2":
name: punctuation.definition.completed.gtdalt
"3":
name: punctuation.definition.completed.gtdalt
"4":
name: string.quoted.other.timestamp.action.completed.gtdalt
"5":
name: punctuation.definition.date.gtdalt
match: ^((#)completed(:))((\[)\d{4}-\d{2}-\d{2}(\]))\s*(.*)
- name: meta.note.gtdalt
begin: ^((\[)\d+(\]))
beginCaptures:
"1":
name: support.other.note.gtdalt
"2":
name: punctuation.definition.note.note.gtdalt
"3":
name: punctuation.definition.note.note.gtdalt
end: \n|$
patterns:
- include: "#link"
- name: meta.action.archived.gtdalt
captures:
"6":
name: storage.type.context.action.archived.gtdalt
"7":
name: comment.line.slash.action.archived.gtdalt
"1":
name: punctuation.separator.archived.gtdalt
"2":
name: string.quoted.other.timestamp.action.archived.gtdalt
"3":
name: punctuation.separator.archived.gtdalt
"4":
name: support.other.project.action.archived.gtdalt
"5":
name: punctuation.separator.archived.gtdalt
match: ^(\/)(\d{4}-\d{2}-\d{2})(\/)([^\/]+)(\/)(@\S+)\s++(.*)$
- name: meta.project.archived.gtdalt
captures:
"1":
name: punctuation.separator.archived.gtdalt
"2":
name: string.quoted.other.timestamp.project.archived.gtdalt
"3":
name: punctuation.separator.archived.gtdalt
"4":
name: support.other.project.archived.gtdalt
match: ^(\/)(\d{4}-\d{2}-\d{2})(\/)([^\/]+)$
- name: comment.line.number-sign.generic.gtdalt
captures:
"1":
name: punctuation.definition.comment.gtdalt
match: ^(#)\s+.*$
foldingStopMarker: ^\s*end\s*$
keyEquivalent: ^~G