leonerd / tree-sitter-perl-LEGACY

a perl parser for javascript
MIT License
4 stars 0 forks source link

Gets very confused about `s(){}e` substitution #13

Open leonerd opened 2 years ago

leonerd commented 2 years ago

If the substitution delimiters don't match between pattern and replacement, it gets very confused and thinks the rest of the file is just plain text:

perl-treesitter-subst-code

If however you make them match (e.g. by using {} in both), it copes fine:

perl-treesitter-subst-code-OK