New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perl 6 lexer not being used for .pm6 files #1680
Comments
|
I think that your repository is just not up-to-date. With the last release I get: You should contact GitHub support. |
|
The language stats are showing Perl6, so I think this is related to #1662. I'm investigating now. |
|
@bkeepers any heads up? The issue you linked was already closed when you posted your message |
|
Hey @vendethiel. Sorry, we recently swapped how we do syntax highlighting on GitHub and perl6 got dropped in the shuffle. Do you know if https://github.com/textmate/perl.tmbundle properly handles Perl 6? If so, then we just need to add |
https://github.com/textmate/perl.tmbundle/blob/8f62f3c458cacba3152bfedcc971735a0a5d61b1/Syntaxes/Perl.plist#L11-L15 doesn't list any Perl 6-specific filename extensions, so it seems unlikely. |
|
@aroben Ah, I was looking at https://github.com/ashgti/perl-tmbundle when I made the change. I'll see if I can poke @ashgti to submit the changes upstream. |
|
My perl-tmbundle is pretty old. I am not sure how accurate it is. I can validate its still accurate and make a PR to the textmate/perl.tmbundle repo. |
|
So it seems that Perl 6 files are sometimes classified as Prolog: https://github.com/rakudo/rakudo/search?l=prolog |
|
Ha, found the problem! https://github.com/rakudo/rakudo/blob/nom/src/core/List.pm#L452 (at least with that file) EDIT: Here's a link that won't change with time: https://github.com/rakudo/rakudo/blob/3607d7bf937b32bd7d35eee2de390f103ee4bb12/src/core/List.pm#L462 |
|
Can this be closed now that #900 has landed? |
|
@arfon I'm not sure; as far as I see it, there are two issues remaining:
The issue makes it sound like .pm6 files are not properly detected as Perl 6, which they are. I don't remember if linguist improperly detected them back in November, or if I was misrepresenting the issue that there was no Perl 6 highlighting for them. Would you like me to close this and break out the two problems mentioned above into separate issues? |
This is happening because of #2042.
@ashgti doesn't seem to be responding anymore (see ashgti/perl-tmbundle#1). Maybe we could fork the repository, update the conflicting scope name and use it as is? |
|
@pchaigno Hi, I have updated my perl.tmbundle with an updated syntax based off the vim.perl perl6 syntax. Its not complete yet, but I created a pull request here atom/language-perl#9 and textmate/perl.tmbundle#13 for the basic support. I am still working on a more complete grammar for TextMate (and Atom). |
|
@ashgti Good! Could you post here when one of the PR is merged? |
|
@pchaigno sure, I'll let you know when its merged |
|
Since |
.pm6files in repositories have no syntax highlighting applied (example: https://github.com/retupmoca/p6-Email-Simple/blob/master/lib/Email/Simple.pm6)..pm6files in Gists, however, do!The text was updated successfully, but these errors were encountered: