atom / language-perl

Perl package for Atom
Other
25 stars 32 forks source link

Added missing RegEx modifiers #12

Closed Fank closed 9 years ago

Fank commented 9 years ago

Added /p preserve the string matched such that ${^PREMATCH}, ${^MATCH}, and ${^POSTMATCH} are available for use after matching. Added /c keep the current position during repeated matching

As listed here http://perldoc.perl.org/perlre.html

pchaigno commented 9 years ago

@Fank There are other lines where you might need to add these (search for egimo). I'm not sure of what's the difference between all the lines with regex modifiers, so maybe it's not necessary...

Fank commented 9 years ago

@pchaigno Thanks for the info, ill take a look in it.

kevinsawicki commented 9 years ago

I added pc to the other areas @pchaigno mentioned.

Thanks for this! :ship: