Skip to content

Commit

Permalink
Give Apex primary cls extension
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Jun 7, 2012
1 parent 3ea4474 commit 602a79e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/linguist/languages.yml
Expand Up @@ -63,6 +63,9 @@ Ada:
Apex:
type: programming
lexer: Text only
primary_extension: .cls
overrides:
- .cls
extensions:
- .cls

Expand Down Expand Up @@ -1191,8 +1194,6 @@ TeX:
type: markup
ace_mode: latex
primary_extension: .tex
overrides:
- .cls
extensions:
- .aux
- .cls
Expand Down

1 comment on commit 602a79e

@abevoelker
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea... I should have done a bit more to sandbox the horrendous OpenEdge language from being falsely detected.

What would be neat is if there was an introspection method similar to the ambiguous extension handling that could be used to explicitly say "this file is not a <Language> file," except be usable in instances where there is no file extension ambiguity. Because when I added OE, a lot of cruft got pulled in and marked as OE because they had files ending in .p, but were definitely not valid OE code. Perhaps that's being a bit too OCD though... I suppose it would give repo owners incentive to add a lexer for the correct .p language.

Anyway, cool story bro and carry on

Please sign in to comment.