Skip to content

Some Perl files are recognized as Raku #524

Closed
@ferki

Description

@ferki

Does this bug happen when you install plugin without vim-polyglot?

As far as I can tell, no.

Describe the bug:

Some Perl files, like *.pm, *.pl, and *.t, are recognized as Raku instead of Perl since v4.5.0 of vim-polyglot. There might be other extensions affected.

v4.4.3 seems to be working fine. Perhaps it's a side effect of switching to linguist, and/or changed priorities?

As far as I can tell, the same extensions are used by both plugins, and they might not be easy to remove from vim-raku, since older Raku code might still use them (instead of *.pm6 and *.t6, if I understand correctly).

I speculate that there might be still more Perl code out there, than Raku code, so leaning towards Perl over Raku in these ambiguous cases might have a higher chance of correct detection (and seemingly linguist does that too).

To Reproduce:

Open a *.pm, *.pl, or *.t file that contains Perl code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions