Ticket #3932 (new defect)

Opened 3 years ago

Last modified 11 months 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 11 months 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.