Opened 11 years ago

Last modified 8 years ago

#745 assigned defect

[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:


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*     # drops all spaces
     $       # end of line
  /x) {
     print "$1 : $2\n";

Attachments (1)

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

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by daxim

comment:1 Changed 9 years ago by szabgab

  • Component changed from editor to Syntax Highlighting

comment:2 Changed 9 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 8 years ago by bowtie

this is still the same in r18883

comment:4 Changed 8 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 :)

Version 0, edited 8 years ago by azawawi (next)

comment:5 Changed 8 years ago by bowtie

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