File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -64,14 +64,17 @@ page_task
64
64
space ?
65
65
description : content
66
66
break
67
+ test : task_test *
68
+ break ?
67
69
{
68
70
position .task += 1 ;
69
71
if (! output .pages [position .page ].tasks ) {
70
72
output .pages [position .page ].tasks = [];
71
73
}
72
74
output .pages [position .page ].tasks .push ({
73
- description: adjust (description)
74
- })
75
+ description: adjust (description),
76
+ tests: test
77
+ })
75
78
}
76
79
77
80
page_actions
@@ -85,6 +88,11 @@ task_actions
85
88
86
89
task_test
87
90
= '@test'
91
+ '(' quote
92
+ testPath : [^\n ^\r ^\'\"\` )]+
93
+ quote ')'
94
+ break
95
+ { return testPath .join (' ' ); }
88
96
89
97
task_hint
90
98
= '@hint'
@@ -121,9 +129,3 @@ space = [ \s]
121
129
break = [\n\r ]?
122
130
file_path = [a-z_\-\s 0-9\. ]+
123
131
quote = [\"\'\` ]
124
-
125
- {
126
- // notes
127
- // - break if line starts with #
128
- // - break if line starts with @
129
- }
You can’t perform that action at this time.
0 commit comments