From a5ff16c1dc515ca64a12bad2c7fcc7850bc9758f Mon Sep 17 00:00:00 2001 From: Jay Anderson Date: Mon, 27 Jun 2011 20:19:39 -0700 Subject: [PATCH] Detect lilypond language. --- lib/linguist/languages.yml | 7 +++++++ test/test_language.rb | 1 + 2 files changed, 8 insertions(+) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 18f7849f..b8deeeff 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -387,6 +387,13 @@ Io: extensions: - .io +LilyPond: + major: true + lexer: Text only + extensions: + - .ly + - .ily + JSON: group: JavaScript lexer: JavaScript diff --git a/test/test_language.rb b/test/test_language.rb index 17d16cf4..1ed2426d 100644 --- a/test/test_language.rb +++ b/test/test_language.rb @@ -117,6 +117,7 @@ class TestLanguage < Test::Unit::TestCase # Missing Pygments lexers assert_equal Lexer['Text only'], Language['Eiffel'].lexer + assert_equal Lexer['Text only'], Language['LilyPond'].lexer assert_equal Lexer['Text only'], Language['Markdown'].lexer assert_equal Lexer['Text only'], Language['Max/MSP'].lexer assert_equal Lexer['Text only'], Language['Parrot Internal Representation'].lexer