Skip to content

Commit 6ce0361

Browse files
committed
chore: increase maxGap threshold to 2 in binder for better comment association
1 parent 3d42999 commit 6ce0361

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/parse/binder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func NewBinder() *Binder {
3636
}
3737
}
3838

39-
const maxGap = 1
39+
const maxGap = 2
4040

4141
// Bind associates comment blocks with nodes when they appear immediately above declarations.
4242
// @intent build node-to-annotation bindings from parsed comments and node positions

0 commit comments

Comments
 (0)