File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,17 +14,17 @@ struct LazyString <: AbstractString
14
14
LazyString (args... ) = new (args)
15
15
end
16
16
17
- macro lazy_str (string )
17
+ macro lazy_str (text )
18
18
parts = Any[]
19
19
lastidx = idx = 1
20
- while (idx = findnext (' $' , string , idx)) != = nothing
21
- lastidx < idx && push! (parts, string [lastidx: idx- 1 ])
20
+ while (idx = findnext (' $' , text , idx)) != = nothing
21
+ lastidx < idx && push! (parts, text [lastidx: idx- 1 ])
22
22
idx += 1
23
- expr, idx = Meta. parse (string , idx; greedy = false , raise = false )
23
+ expr, idx = Meta. parseatom (text , idx; filename = string (__source__ . file) )
24
24
push! (parts, esc (expr))
25
25
lastidx = idx
26
26
end
27
- lastidx <= lastindex (string ) && push! (parts, string [lastidx: end ])
27
+ lastidx <= lastindex (text ) && push! (parts, text [lastidx: end ])
28
28
:(LazyString ($ (parts... )))
29
29
end
30
30
You can’t perform that action at this time.
0 commit comments