Regression fix: ensure .coffee is primary ext.

(The primary extension by default is the first extension, but the extensions
need to be in alphabetical order, and _coffee comes before coffee.)
This commit is contained in:
Aseem Kishore
2012-04-03 14:55:34 -04:00
parent 54e81dd8fb
commit 17adccc844
2 changed files with 3 additions and 1 deletions

View File

@@ -216,9 +216,9 @@ CoffeeScript:
ace_mode: coffee ace_mode: coffee
aliases: aliases:
- coffee - coffee
primary_extension: .coffee
extensions: extensions:
- ._coffee - ._coffee
- .coffee
filenames: filenames:
- Cakefile - Cakefile

View File

@@ -337,6 +337,8 @@ class TestLanguage < Test::Unit::TestCase
assert_equal '.pl', Language['Perl'].primary_extension assert_equal '.pl', Language['Perl'].primary_extension
assert_equal '.py', Language['Python'].primary_extension assert_equal '.py', Language['Python'].primary_extension
assert_equal '.rb', Language['Ruby'].primary_extension assert_equal '.rb', Language['Ruby'].primary_extension
assert_equal '.js', Language['JavaScript'].primary_extension
assert_equal '.coffee', Language['CoffeeScript'].primary_extension
# This is a nasty requirement, but theres some code in GitHub that # This is a nasty requirement, but theres some code in GitHub that
# expects this. Really want to drop this. # expects this. Really want to drop this.