File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -128,19 +128,20 @@ Reduced the syntax (a string or SyntaxNode) from `file_content` into the
128
128
minimal failing subtrees of syntax and write the results to `out`.
129
129
"""
130
130
function format_reduced_tests (out:: IO , file_content; filename= nothing )
131
+ println (out, " #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" )
131
132
if ! isnothing (filename)
132
133
println (out, " # $filename " )
133
134
end
134
135
text = nothing
135
136
try
136
137
rtrees = reduce_test (file_content)
137
- first = true
138
138
for rt in rtrees
139
- if ! first
140
- print (out, " \n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n " )
139
+ print (out, " \n #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n " )
140
+ t = sourcetext (rt)
141
+ print (out, t)
142
+ if ! endswith (t, ' \n ' )
143
+ println (out)
141
144
end
142
- first = false
143
- print (out, sourcetext (rt))
144
145
end
145
146
catch exc
146
147
exc isa InterruptException && rethrow ()
You can’t perform that action at this time.
0 commit comments