jrockway / cperl-mode

cperl-mode with 5.10 fixes, mx-declare support, perl6 support, etc.
102 stars 33 forks source link

Bugfix: Recognize that { $a++ / $b } is a division, not a regex. #55

Closed HaraldJoerg closed 4 years ago

HaraldJoerg commented 4 years ago

This has been observed by @choroba in issue #45. The solution is yet another special case where we need to look back one more character to check whether '+' or '-' are infix operators.

Background: I've missed this repository when I started to hack on cperl-mode myself. I did too much refactoring in my own experiments to throw all that as a PR over the fence, though.