ganezdragon / tree-sitter-perl

a perl parser for javascript
MIT License
33 stars 9 forks source link

Non-anonymous hash items #24

Closed Leeft closed 1 year ago

Leeft commented 1 year ago

Fix to allow the individual key/value pairs in hash/key pairs to be targeted; the node tree was too flat to allow for this. The updated test shows the effect of this change well.

Bit of background: I've been looking at adding Perl support to Cursorless to allow easier voice coding in Perl (I'm struggling with RSI), and for some scope selections we're hitting particular limits in what this tree sitter can handle, so I'll be filing either issues or PR's for these. Hopefully we can cooperate to improve this tree sitter enough so that we can make Cursorless work well with Perl as well.

ganezdragon commented 1 year ago

This looks good. I have been introduced to Cursorless very recently, and exited to know more.

@Leeft , sure I'm happy to provide support!