ganezdragon / tree-sitter-perl

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

Assigning an anonymous subroutine to a hash value breaks the parser #17

Closed shdb closed 1 year ago

shdb commented 2 years ago

The parser breaks after assigning an anonymous subroutine to a hash value. It happens a soon as something is written inside the curly brackets.

broken1 broken2 broken3 ok1

ganezdragon commented 1 year ago

It seems it breaks not at anonymous subroutines, but on special variables like $SIG . Let me look at fixing it.

ganezdragon commented 1 year ago

Fixed this in the latest commit. Will publish a newer version soon.