@@ -77,11 +77,11 @@ Its fields are as follows:
77
77
- `pending_styles::Vector{Tuple{UnitRange{Int}, Union{Symbol, Expr, Pair{Symbol, Any}}}}`,
78
78
A list of styles that have been terminated, and so are known to occur over a certain range,
79
79
but have yet to be applied.
80
- - `offset::Ref {Int}`, a record of the between the `content` index and the index in the resulting
80
+ - `offset::RefValue {Int}`, a record of the between the `content` index and the index in the resulting
81
81
styled string, as markup structures are absorbed.
82
- - `point::Ref {Int}`, the current index in `content`.
83
- - `escape::Ref {Bool}`, whether the last character seen was an escape character.
84
- - `interpolated::Ref {Bool}`, whether any interpolated values have been seen. Knowing whether or not
82
+ - `point::RefValue {Int}`, the current index in `content`.
83
+ - `escape::RefValue {Bool}`, whether the last character seen was an escape character.
84
+ - `interpolated::RefValue {Bool}`, whether any interpolated values have been seen. Knowing whether or not
85
85
anything needs to be evaluated allows the resulting string to be computed at macroexpansion time,
86
86
when possible.
87
87
- `errors::Vector`, any errors raised during parsing. We collect them instead of immediately throwing
@@ -97,10 +97,10 @@ struct State
97
97
parts:: Vector{Any}
98
98
active_styles:: Vector {Vector{Tuple{Int, Int, Union{Symbol, Expr, Pair{Symbol, Any}}}}}
99
99
pending_styles:: Vector {Tuple{UnitRange{Int}, Union{Symbol, Expr, Pair{Symbol, Any}}}}
100
- offset:: Ref {Int}
101
- point:: Ref {Int}
102
- escape:: Ref {Bool}
103
- interpolated:: Ref {Bool}
100
+ offset:: Base.RefValue {Int}
101
+ point:: Base.RefValue {Int}
102
+ escape:: Base.RefValue {Bool}
103
+ interpolated:: Base.RefValue {Bool}
104
104
errors:: Vector
105
105
end
106
106
0 commit comments