File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -72,13 +72,13 @@ ncodeunits(c::ANSIDelimiter) = ncodeunits(c.del)
72
72
textwidth (:: ANSIDelimiter ) = 0
73
73
74
74
# An iterator similar to `pairs(::String)` but whose values are Char or ANSIDelimiter
75
- struct ANSIIterator
76
- captures:: RegexMatchIterator
75
+ struct ANSIIterator{S}
76
+ captures:: RegexMatchIterator{S}
77
77
end
78
78
ANSIIterator (s:: AbstractString ) = ANSIIterator (eachmatch (ansi_regex, s))
79
79
80
- IteratorSize (:: Type{ANSIIterator} ) = SizeUnknown ()
81
- eltype (:: Type{ANSIIterator} ) = Pair{Int, Union{Char,ANSIDelimiter}}
80
+ IteratorSize (:: Type{<: ANSIIterator} ) = SizeUnknown ()
81
+ eltype (:: Type{<: ANSIIterator} ) = Pair{Int, Union{Char,ANSIDelimiter}}
82
82
function iterate (I:: ANSIIterator , (i, m_st)= (1 , iterate (I. captures)))
83
83
m_st === nothing && return nothing
84
84
m, (j, new_m_st) = m_st
You can’t perform that action at this time.
0 commit comments