From 3ee7657baef833b7544f8ca98dd20189dda4d7e9 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Wed, 11 May 2011 14:34:39 -0500 Subject: [PATCH] 'text' should be the default lexer --- lib/linguist/pathname.rb | 2 +- test/test_pathname.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/linguist/pathname.rb b/lib/linguist/pathname.rb index 98d35d85..4c2d7244 100644 --- a/lib/linguist/pathname.rb +++ b/lib/linguist/pathname.rb @@ -28,7 +28,7 @@ module Linguist if language language.lexer else - 'plain' + 'text' end end diff --git a/test/test_pathname.rb b/test/test_pathname.rb index 70db3c87..bcad1c75 100644 --- a/test/test_pathname.rb +++ b/test/test_pathname.rb @@ -48,7 +48,7 @@ class TestPathname < Test::Unit::TestCase assert_equal 'bash', Pathname.new("file.ebuild").lexer assert_equal 'python', Pathname.new("itty.py").lexer assert_equal 'scheme', Pathname.new("itty.nu").lexer - assert_equal 'plain', Pathname.new("defun.kt").lexer + assert_equal 'text', Pathname.new("defun.kt").lexer end def test_lexer_name