Ticket #3932 (new defect)
[Perl syntax] Symbol "#" parsed as comment in regular expressions
Reported by: | asy | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | Future Releases |
Component: | mcedit | Version: | 4.8.21 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
String from "#" is highlighted as comments:
$C =~ tr/!*?+\\\[\]#(){}=,:/.............../;
Note: See
TracTickets for help on using
tickets.
Yes, that is tricky. JavaScript? also has similar issues with regexp interacting with a comment on a same line. #2145
I think the perl one like above should be fixable tho.