Skip to content

Commit

Permalink
Register "cperl" as an alias of Perl 5 (#4067)
Browse files Browse the repository at this point in the history
* Register `cperl` as an alias of Perl 5

Emacs ships with an enhanced major-mode for editing Perl with embedded C
sections (called `cperl-mode`). This commit enables Linguist to identify
Perl files containing cperl modelines.

* Add `cperl` to list of Perl 5 interpreters
  • Loading branch information
Alhadis authored Apr 6, 2018
1 parent ecc6278 commit 324bc83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3382,7 +3382,10 @@ Perl:
- ack
- cpanfile
interpreters:
- cperl
- perl
aliases:
- cperl

This comment has been minimized.

Copy link
@Alhadis

Alhadis Apr 6, 2018

Author Collaborator

@kasper3 See #4067. There are two entirely different uses of cpan here. The alias refers to the major-mode as used by Emacs (cperl-mode), whereas the interpreter refers to an unrelated fork called CPerl (previously called "Perl 11"), which is also a legitimate interpreter name.

language_id: 282
Perl 6:
type: programming
Expand Down

0 comments on commit 324bc83

Please sign in to comment.