mirror of
https://github.com/github/semantic.git
synced 2024-11-28 01:47:01 +03:00
Accumulate keyed elements.
This commit is contained in:
parent
dd5c507f0c
commit
cb715cb8ea
@ -37,6 +37,7 @@ splitTerm source term = fst $ cata toElement term where
|
||||
toElement (Info range lineRange categories) (Fixed i) = makeList i range categories
|
||||
|
||||
accumulate (children, previous) (child, range) = (children ++ [ subtext previous $ start range, child ], end range)
|
||||
accumulateFromMap (children, previous) (key, (child, range)) = (children ++ [ subtext previous $ start range, Dt key, child ], end range)
|
||||
|
||||
makeList i range categories = (Ul (classify categories) items, range)
|
||||
where
|
||||
|
Loading…
Reference in New Issue
Block a user