Ticket #745 (assigned defect)

Opened 4 years ago

Last modified 2 years ago

[Perl 5 syntax highlighting] delimiter used in extended regular expressions displays wrong

Reported by: daxim Owned by: azawawi
Priority: minor Milestone:
Component: Syntax Highlighting Version: 0.50
Keywords: Cc:

Description

If a comment contains a / the highlighting colour indicates that the regex has ended, whilst it continues on subsequent lines. Reported by mberends on IRC.

 if ($line =~ m/
     ^       # beginning of line
     (.+)
     \/      # this is for the forward slash /
     (\S*)
     \s*     # drops all spaces
     (.*)
     $       # end of line
  /x) {
     print "$1 : $2\n";
 }

Attachments

highlighting-extended-regex.png (18.9 KB) - added by daxim 4 years ago.

Change History

Changed 4 years ago by daxim

comment:1 Changed 3 years ago by szabgab

  • Component changed from editor to Syntax Highlighting

comment:2 Changed 3 years ago by azawawi

This is still bug even in Scintilla 2.27. I think we need to fix it in Wx::Scintilla.

comment:3 Changed 2 years ago by bowtie

this is still the same in r18883

comment:4 Changed 2 years ago by azawawi

Initial investigation shows that this is a LexPerl.cxx Scintilla bug that is also present on Notepad++. Maybe it is time to fix it there :)

Last edited 2 years ago by azawawi (previous) (diff)

comment:5 Changed 2 years ago by bowtie

  • Owner set to azawawi
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.