Re:Treefrog: A code editor that uses both AST and text editi...
by gushogg-blake on Wednesday January 05, 2022 @01:37PM
(#29813071)
It's more that the selection operates on whole lines in Tree mode, so it would parse fine with the tree-sitter grammar (for syntax highlighting etc) but selecting the inner contents of a block would take the block's closing ) with it. This would only matter if you wanted to move the contents somewhere though - editing and refactoring commands (including with the help of LSPs) will work, with the selection being the outermost node on the first selected line.
[ Parent
| on HN ]
There are no comments on this comment yet.