Re: Highlighter doesn't work right with perl and dbl quote
The reason is the regex containing a double quote on line 1. The syntax highlighting parser does not cope correctly with Perl regular expressions, because they are ver hard to recognize. The regex can be written in many ways, for example: if( $pr =~ m/[\"]/ ) if( $pr =~ /[\"]/ ) if( $pr =~ / [\"] # quote characters /x ) if( $pr =~ m,[\"], ) if( $pr =~ m{[\"]} ) $_ = $pr; if( /[\"]/ ) $_ = $pr; if( m|[\"]| ) Since the syntax highlighting parser itself uses regular expressions, we would need a regex that can recognize all these possibilities, but does not find false positives like in if( $x / 2 > $y / 3 ) Any suggestions are welcome. Workaround: add a comment after such regexes: if ($pr=~m/[\"]/) #"
|