atom / language-perl

Perl package for Atom
Other
25 stars 32 forks source link

General improvements #15

Closed Fank closed 9 years ago

Fank commented 9 years ago

Replaced \w to allow _ in regex replace

$asd =~ s/a/v/g;
$asd =~ s_a_v_g; # <- now this is highlighted

I found this missing highlighting during research of #6

Added SUB , DATA AND END as a constant

http://perldoc.perl.org/perldata.html#Scalar-value-constructors -> Special Literals

SUB gives a reference to the current subroutine END and DATA may be used to indicate the logical end of the script before the actual end of file.

Added UNITCHECK, CHECK and INIT as meta function

http://perldoc.perl.org/perlmod.html#BEGIN%2c-UNITCHECK%2c-CHECK%2c-INIT-and-END

Fank commented 9 years ago

It would be nice if could get some feedback for the test i've written because i realy don't know what to test exacly.

kevinsawicki commented 9 years ago

It would be nice if could get some feedback for the test i've written

Looks good to me, thanks for adding coverage for your editions :ship: