File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 2071
2071
2072
2072
(define (doc-string-literal? e )
2073
2073
(or (simple-string-literal? e)
2074
+ (and (pair? e) (eq? 'string (car e))) ; string interpolation
2074
2075
(and (length= e 3 ) (eq? (car e) 'macrocall )
2075
2076
(simple-string-literal? (caddr e))
2076
2077
(eq? (cadr e) '@doc_str ))))
2077
2078
2078
2079
(define (parse-docstring s production )
2079
- (let* ((ex (production s)))
2080
+ (let* ((ex (production s)))
2080
2081
(if (and (doc-string-literal? ex)
2081
2082
(let loop ((t (peek-token s)))
2082
2083
(cond
Original file line number Diff line number Diff line change 196
196
let fd = meta (I12515)[Base. collect]
197
197
@test fd. order[1 ]. sig == Tuple{Type{I12515. EmptyType{TypeVar (:T , Any, true )}}}
198
198
end
199
+
200
+
201
+ # PR #12593
202
+
203
+ " $(1 + 1 ) "
204
+ f12593_1 () = 1
205
+
206
+ " $(1 + 1 ) 2"
207
+ f12593_2 () = 1
208
+
209
+ @test (@doc f12593_1) != = nothing
210
+ @test (@doc f12593_2) != = nothing
You can’t perform that action at this time.
0 commit comments