mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	'text' should be the default lexer
This commit is contained in:
		| @@ -28,7 +28,7 @@ module Linguist | |||||||
|       if language |       if language | ||||||
|         language.lexer |         language.lexer | ||||||
|       else |       else | ||||||
|         'plain' |         'text' | ||||||
|       end |       end | ||||||
|     end |     end | ||||||
|  |  | ||||||
|   | |||||||
| @@ -48,7 +48,7 @@ class TestPathname < Test::Unit::TestCase | |||||||
|     assert_equal 'bash',   Pathname.new("file.ebuild").lexer |     assert_equal 'bash',   Pathname.new("file.ebuild").lexer | ||||||
|     assert_equal 'python', Pathname.new("itty.py").lexer |     assert_equal 'python', Pathname.new("itty.py").lexer | ||||||
|     assert_equal 'scheme', Pathname.new("itty.nu").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 |   end | ||||||
|  |  | ||||||
|   def test_lexer_name |   def test_lexer_name | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user