@@ -78,7 +78,7 @@ function eachregion(s::SubString{<:AnnotatedString}, pos::UnitRange{Int}=firstin
78
78
end
79
79
80
80
"""
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})
82
82
annotation_events(string::AnnotatedString, subregion::UnitRange{Int})
83
83
84
84
Find 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
89
89
indicating whether the annotation is being activated or deactivated, and `index`
90
90
is the index of the annotation in question.
91
91
"""
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} )
93
93
events = Vector {NamedTuple{(:pos, :active, :index), Tuple{Int, Bool, Int}}} () # Position, Active?, Annotation index
94
94
for (i, (region, _)) in enumerate (annots)
95
95
if ! isempty (intersect (subregion, region))
0 commit comments