[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#20800: perl mode reads into comments too deeply
From: |
Stefan Monnier |
Subject: |
bug#20800: perl mode reads into comments too deeply |
Date: |
Mon, 15 Jun 2015 21:03:31 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> For this snippet of code perl mode gets the colors wrong:
> return 'W' if #/^Not Available on Mobile/m; #W=Web only
> /This video is not available on mobile devices./m;
> #After the m all is the wrong color.
Indeed, the code did not handle the case of a comment between the "if"
and the "/": it treated this slash as a division operator.
I installed a patch into the "master" branch which should fix it,
Stefan