Skip to content

Commit

Permalink
properly register comments as parsed items
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira authored and lukaszcz committed Dec 6, 2024
1 parent 7ae318d commit d3f13c1
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,14 @@ runParserResultBuilder s =
registerItem' i
RegisterSpaceSpan g -> do
modify' (over parserStateComments (g :))
forM_ (g ^.. spaceSpan . each . _SpaceComment) $ \c ->
registerItem'
ParsedItem
{ _parsedLoc = getLoc c,
_parsedTag = ParsedTagComment
}
forM_ (g ^.. spaceSpan . each . _SpaceComment) $ \c -> do
let i =
ParsedItem
{ _parsedLoc = getLoc c,
_parsedTag = ParsedTagComment
}
highlightParsedItem i
registerItem' i

ignoreParserResultBuilder :: Sem (ParserResultBuilder ': r) a -> Sem r a
ignoreParserResultBuilder = interpret $ \case
Expand Down

0 comments on commit d3f13c1

Please sign in to comment.