ganezdragon / tree-sitter-perl

a perl parser for javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parser breaks when declaring const string reference to ";"

danipozo opened this issue · comments

Parsed correctly:
image
image
Parsed incorrectly:
image

@danipozo , I believe you are using the syntax wrongly. Constants in perl would be declared with use constant syntax. More info here - https://perldoc.perl.org/constant.

Please feel free to close this issue as needed.

Based on that syntax, they might be using Const::Fast: https://metacpan.org/pod/Const::Fast

@oalders , interesting, let me take a look

Based on that syntax, they might be using Const::Fast: https://metacpan.org/pod/Const::Fast

Yes, that's what I'm using.

this is fixed.