Skip to content

Commit 3fba08b

Browse files
committed
Use concrete refs in paren state struct
It's recently come to my attention that RefValue is actually what Ref looks like at a glance.
1 parent a463611 commit 3fba08b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/JuliaSyntaxHighlighting.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ function paren_type(k::Kind)
133133
end
134134

135135
struct ParenDepthCounter
136-
paren::Ref{UInt}
137-
bracket::Ref{UInt}
138-
curly::Ref{UInt}
136+
paren::Base.RefValue{UInt}
137+
bracket::Base.RefValue{UInt}
138+
curly::Base.RefValue{UInt}
139139
end
140140

141141
ParenDepthCounter() =

0 commit comments

Comments
 (0)