hinrik / perl6-mode

Emacs major mode for Perl 6
GNU General Public License v3.0
36 stars 4 forks source link

Less than or equal operator not being parsed correctly. #9

Closed bstamour closed 8 years ago

bstamour commented 8 years ago

The following program demonstrates

use v6; my $v1 = 2; my $v2 = 3; if $v1 <= $v2 { say 'what'; }

Everything after "<=" does not parse correctly, leading to indentation breaking.

Wrapping the conditional with parens does not fix the issue either.

dct commented 8 years ago

Adding (looking-at (rx-to-string `(char "="))) to perl6-font-lock.el:388 seems to fix it for me but I don't know anything about the surrounding code.