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 committed Dec 6, 2024
1 parent e06356d commit 7bbefb1
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 7bbefb1

Please sign in to comment.