@@ -78,7 +78,7 @@ function eachregion(s::SubString{<:AnnotatedString}, pos::UnitRange{Int}=firstin
7878end
7979
8080"""
81- annotation_events(string::AbstractString, annots::Vector{Tuple{UnitRange{Int64 }, Pair{Symbol, Any}}}, subregion::UnitRange{Int})
81+ annotation_events(string::AbstractString, annots::Vector{Tuple{UnitRange{Int }, Pair{Symbol, Any}}}, subregion::UnitRange{Int})
8282 annotation_events(string::AnnotatedString, subregion::UnitRange{Int})
8383
8484Find all annotation "change events" that occur within a `subregion` of `annots`,
@@ -89,7 +89,7 @@ index::Int}` where `pos` is the position of the event, `active` is a boolean
8989indicating whether the annotation is being activated or deactivated, and `index`
9090is the index of the annotation in question.
9191"""
92- function annotation_events (s:: AbstractString , annots:: Vector{Tuple{UnitRange{Int64 }, Pair{Symbol, Any}}} , subregion:: UnitRange{Int} )
92+ function annotation_events (s:: AbstractString , annots:: Vector{Tuple{UnitRange{Int }, Pair{Symbol, Any}}} , subregion:: UnitRange{Int} )
9393 events = Vector {NamedTuple{(:pos, :active, :index), Tuple{Int, Bool, Int}}} () # Position, Active?, Annotation index
9494 for (i, (region, _)) in enumerate (annots)
9595 if ! isempty (intersect (subregion, region))
0 commit comments