goccy / go-yaml

YAML support for the Go language
MIT License
1.12k stars 129 forks source link

Lexer and Parser information for creating intelisense support #468

Open torabian opened 1 month ago

torabian commented 1 month ago

Is your feature request related to a problem? Please describe. No problem.

Describe the solution you'd like I am building a yaml intelisense plugin, and I need to understand based on user cursor on the text (row, col), in which hireachy relies. So even there are many empty lines, we are still under an specific hireachy.

Describe alternatives you've considered I have tried to get the col, line of each node, but it's not that much helpful, there are so many missing information on empty spaces, and it's hard to keep track of where user text caret is exactly.