Closed
Description
For functions with a do
block, the comments following the function get included in the function, for example:
f = do a
-- | haddock
g = b
here the function pattern will include all of f
and the doc comment of g
. This isn't the case when there is no do
block:
f = a
-- | haddock
g = b
in this case it works as I expected, only matching f = a
.
I tested this out using the latest commit on the master branch, using the following tree sitter query:
(function rhs: (_) @function.inside) @function.around
(both captures end up including the doc comment)
Metadata
Metadata
Assignees
Labels
No labels