Closed ashgti closed 9 years ago
I removed the change to the version number. Let me know if you have any other comments. I am working on a more in-depth grammar for Perl 6 but this is has basic support for most literals and keywords.
Is there anything else that needs to be done to merge this?
Some test might by nice, but looks fine to me
@Fank I am working on creating a more detailed grammar for perl6 and it will include test cases as well.
@Fank are you cool with me merging this? Or did you have any other feedback before it gets merged?
@kevinsawicki yea you can merge this
Thanks for this @ashgti
Perl6 is an entirely different language than Perl5, it should really have its own package.
@kraih Perl 6 is still a member of the Perl familiy. And its handled in different files https://github.com/atom/language-perl/tree/master/grammars to avoid collisions. And increases the maintainability to handle multiple versions in the same package.
@Fank Like C# is in the C family of languages. Both grammars don't share anything, how does having them in the same package increase maintainability?
@kraih i thought it maybe better to add all "perl" versions in the "perl" package so you can manage/find them easier, because all of them are in the perl package. But i took a look at the Perl 6 syntax, to compare Perl 5 with 6, and yea you might be right, because both share about <5%. @kevinsawicki, @ashgti What do you think about @kraih idea about moving Perl 6 in a different package?
I think having both of these grammars in the same package is fine, many packages contain multiple grammars that represent a cohesive grouping.
I am fine either way, if it seems to disjoint to have in the perl repo then someone (I?) can make a separate language-perl6 repository.
Adding some basic support for Perl6. This is not complete, it only has basic support for variable matching and doesn't match sub/method/etc. names yet, but it does match keywords, builtins and a number of primitives of perl6.