File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 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)
7272textwidth (:: ANSIDelimiter ) = 0
7373
7474# 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}
7777end
7878ANSIIterator (s:: AbstractString ) = ANSIIterator (eachmatch (ansi_regex, s))
7979
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}}
8282function iterate (I:: ANSIIterator , (i, m_st)= (1 , iterate (I. captures)))
8383 m_st === nothing && return nothing
8484 m, (j, new_m_st) = m_st
You can’t perform that action at this time.
0 commit comments