atom / language-perl

Perl package for Atom
Other
25 stars 32 forks source link

RegEx match doesn't highlight modifier #20

Closed Fank closed 9 years ago

Fank commented 9 years ago

regex_issue

$httpRequest->method() =~ m~GET|POST~i

$test =~ s~\r\n|\r|\n~\r\n~g;

The i modifier should be highlighted same as g in the regex replace

Fank commented 9 years ago

There are more issues with highlighting regex_issues

$test =~ /\r\n|\r|\n/g;
$test =~ m/\r\n|\r|\n/g;
$test =~ m~\r\n|\r|\n~g;
$test =~ m(\r\n|\r|\n)g;
$test =~ m[\r\n|\r|\n]g;
$test =~ m{\r\n|\r|\n}g;

$test =~ s/\r\n|\r|\n/\r\n/g;
$test =~ s~\r\n|\r|\n~\r\n~g;
$test =~ s(\r\n|\r|\n)(\r\n)g;
$test =~ s[\r\n|\r|\n][\r\n]g;
$test =~ s{\r\n|\r|\n}{\r\n}g;
$test =~ s<\r\n|\r|\n><\r\n>g;