Ticket #3932 (new defect)

Opened 6 years ago

Last modified 4 years ago

[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/!*?+\\\[\]#(){}=,:/.............../;

Change History

comment:1 Changed 4 years ago by baryluk

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.

Note: See TracTickets for help on using tickets.