atom / language-perl

Perl package for Atom
Other
25 stars 32 forks source link

Error in match regexp for 'routine.name.perl6' #60

Open darutoko opened 8 years ago

darutoko commented 8 years ago

In file perl6.cson on line 260 you have this [-\'] in regexp. This range is wrong since ascii codes: \ - 92, ' - 39 I think this might be a reason why almost every bareword is routine right now. What did you mean with this range? And what exactly do you want to match? Cuz it doesn't looks like Perl 6 routine at all.

Fank commented 8 years ago

can you please provide an code example?

darutoko commented 8 years ago

example of what?

Fank commented 8 years ago

an example that matches, should not matches this.

darutoko commented 8 years ago

1) I don't know what it should match and what it shouldn't. you better ask person that wrote it.

2) I assumed that \ and ' were swapped so I swapped them back and got this http://regexr.com/3cf0u

3) Perl 6 routines list http://docs.perl6.org/routine.html